summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2020-02-18Further unify apm events and timeout polling codeJeremie Courreges-Anglas
Fake an APM_POWER_CHANGE event if we time out waiting for an event. This allows us to handle autoaction in a single place.
2020-02-17future replacement for PackageInfo.pmMarc Espie
- the name was a bit confusing (pkg_info) - one of the first modules I wrote, and the old one isn't OO at all, and full of globals, which can be a problem for displaying error messages, and for tweaking PKG_DB locally... This will replace PackageInfo.pm once I've gone through all the callers. New synopsis would make this part of State in most cases, without any singleton.
2020-02-17Bring ospf6d closer to ospfddenis
- update debug messages to be more precise - simplify call to lsa_self() - drop lsa_find_lsid() redondant parameters OK remi@
2020-02-16Tag "neighbor" and "group" keywords at their definitionskn
mdoc(7) auto-tagging delivered false positives leading tag users to usages somewhere in manual; add ".Tg" markup for both keywords in the "NEIGHBORS AND GROUPS" section where the concepts are introduced. Feedback and OK schwarze
2020-02-16Backout "DHCP is configured on the first interface only"kn
I completely missed that part from vmctl.5's "LOCAL INTERFACES" section. Reading `-L's description itself and the fact that it functions as a boolean switch contrary to how `-i' expects a number, I made the wrong assumption that it can only work for the first interface. "vmctl -Li2" configures two interfaces, one witch DHCP and one without. "vmctl -L -L" however configures two interfaces with DHCP IPs each. My second mistake was to imply analogue behaviour for the configuration. Now that you stated the obvious about `local' being per `interface' line, it makes absoloutely no sense to above mentioned behaviour for static VM definitions. Pointed out by tb
2020-02-15DHCP is configured on the first interface onlykn
A VM can have multiple interfaces, but only the first one gets DHCP if "-L" (vmctl) or "local" (vm.conf) is specified. Positive feedback Mike Larkin
2020-02-14Don't log a generr in stats when there is no error.Martijn van Duren
OK gerhard@
2020-02-14Rename copy_filterset() to filterset_copy() and move it to rde_filter.cClaudio Jeker
where functions like filterset_move() live. Also initialize the dest TAILQ in filterset_copy() as it is done in filterset_move(). OK benno@ phessler@
2020-02-12improve parsing of relay {} sections:Sebastian Benoit
- Do not accept multiple protocol statements, as only one will be used, it is better to error out if more arespecified. - do not allow tcp and http options in dns protocol definitions, they are ignored anyway. Suggested by Nick (nick -AT- kousu -DOT- ca) thanks. ok claudio@
2020-02-12- print 'dlen=' to make it more clear what that number indicatesJasper Lievisse Adriaanse
- add missing rcs id - use 'goto trunc' as is common with other printers ok mpi@
2020-02-12If constraints are configured but do not work for whatever reason ntpdOtto Moerbeek
does not work. Make that more clear in the log and ntpdctl -s status. report by and ok benno@
2020-02-12Standardize argument naming for "sourceaddr" and unify the wording a bit,Ingo Schwarze
similar to what deraadt@ recently did in other manual pages.
2020-02-12Reorder to handle apm events and timeouts with the same codeJeremie Courreges-Anglas
2020-02-12On APM_POWER_CHANGE events check battery life against autoaction levelJeremie Courreges-Anglas
Makes -z/-Z just work for me using acpibat(4). Other battery drivers that provide APM_POWER_CHANGE events: acpisbs(4), apm(4), ykbec(4/loongson) and stsec(4/loongson). ok tedu@
2020-02-12Zap apmtimeout, the way it's used isn't meaningful any moreJeremie Courreges-Anglas
Just check the return value of kevent(2) to detect a timeout. ok tedu@
2020-02-12Move the code to figure out the alternate IP address (IPv6 addr for IPv4Claudio Jeker
sessions and vice versa) from the RDE to the SE. The SE is the right place for this since there getsockname(2) fetches the local address and so the alternate one can be fetched there as well. With this the route pledge is no longer needed in the RDE and the pledge is now just "stdio recvfd". OK benno@
2020-02-11Simplify and unify wording for the -I sourceaddr option in various places.Theo de Raadt
This is somewhat related to the "-b bind_addr" option some programs have, which should get some cleanup also... input florian claudio jmc
2020-02-11Finish moving of dig(1) to /usr/bin/dig by removing the sources in theFlorian Obser
old location. dig(1) sources can be found in src/usr.bin/dig. ok deraadt@
2020-02-11add iwx to fw_updateStefan Sperling
2020-02-11Remove setlocale(3) calls. I checked that no functions are called thatIngo Schwarze
are actually locale-dependent on OpenBSD, and the programs should better not be locale-dependent even when compiled on other systems. millert@ points out that the month and weekday names in the fourth and fifth columns of crontab(5) could in theory be made locale-dependent, but we certainly don't want that, and currently, they are only compared against static const char * arrays in entry.c containing English names. Patch sent in by Jan Stary <hans at stare dot cz>. OK millert@
2020-02-10briefly mention /etc/examples/ in the FILES section of all theIngo Schwarze
manual pages that document the corresponding configuration files; OK jmc@, and general direction discussed with many
2020-02-09mention /etc/examples/bgpd.conf; tweak and OK jmc@, OK benno@Ingo Schwarze
2020-02-09Implement "strip" option for fastcgi to be able to have multiple chrootsFlorian Obser
under /var/www for FastCGI servers. From Nazar Zhuk (nazar AT zhuk DOT online), thanks! Ok benno
2020-02-08correct history ac was in v5Jonathan Gray
2020-02-08sa was in v5Jonathan Gray
tweaks from and ok schwarze@
2020-02-08correct Research Unix edition "appeared in" use in HISTORYJonathan Gray
Starting from "Combined Table of Contents" in Doug McIlroy's "A Research UNIX Reader" a table of which edition manuals appeared in. Checked against manuals from bitsavers/TUHS and source from TUHS where available. Ingo points out there are cases where something is included but not documented until a later release. bcd(6) v6 v7 printf(3) v2 v4 abort(3) v5 v6 system(3) v6 v7 fmod(3) v5 v6 ok schwarze@
2020-02-07Do not define variables in extern.h since this will lead to duplicateFlorian Obser
definitions in every source file that includes extern.h. From Michael Forney (mforney AT mforney DOT org), thanks! OK jca
2020-02-07Unhook usr.sbin/bind from the build and hook up new dig sourceFlorian Obser
directory (usr.bin/dig).
2020-02-05Replace atoi with strtonum for stricter and safer integer parsing.Florian Obser
-N ndots: 0, INT_MAX The upper limit is a bit silly, everything bigger than a small number will force domain names to be interpretet as relative. -R retries INT_MIN, INT_MAX - 1 Specifically documented to accept negative numbers. -W wait 0, INT_MAX One could interpret the documentation as meaning that it accepts negative numbers but that failes later on with an error message from the timer code.. with deraadt, OK kn, input & OK tedu
2020-02-04iterated_hash is unusedFlorian Obser
2020-02-04bit.h and events.h are unused.Florian Obser
2020-02-04lwres no longer deals with lists.Florian Obser
2020-02-04Nothing sets DNS_RDATASETATTR_NEGATIVE; remove code dealing with thatFlorian Obser
and then remove ncache.c.
2020-02-04dig is not generating DS records.Florian Obser
2020-02-04keydata.c is unused.Florian Obser
2020-02-04soa.c is unused.Florian Obser
2020-02-04We are not going to generate nsec or nsec3 RRsets.Florian Obser
2020-02-04dig(1) only needs tsig support so we can delete all non-HMACFlorian Obser
crypto code.
2020-02-04isc/stat.h is unusedFlorian Obser
2020-02-04just use netdb.h directlyFlorian Obser
2020-02-04Remove unused typedefs that got left behind in previousFlorian Obser
shreddings from types.h and get rid of offset.h while here by just using off_t in the one place where it's needed. However offset.h brought in limits.h and sys/types.h so sprinkle some includes over the tree to have various _MAX and intX_t defined.
2020-02-04Get rid of getopt(3) compat code.Florian Obser
2020-02-04Remove a bunch of unused functions who access the filesystem and thenFlorian Obser
get rid of lib/isc/unix/dir.c
2020-02-04We are not going to generate sig0 records so we can rip out theFlorian Obser
sig0key which in turn lets us delete all of dnssec.c
2020-02-04Use opendir(3) to not depend on lib/isc/unix/dir.c.Florian Obser
No change in generated .h files in obj.
2020-02-04unusedFlorian Obser
2020-02-04We are not using aes.Florian Obser
2020-02-04Remove unused files.Florian Obser
2020-02-03ORCPT addresses are prefixed with an address type, the stricter check causeGilles Chehade
the prefix to be rejected as it contains a character not allowed in address reported by Scott Vanderbilt
2020-02-03now that mail.local(8) relies on lockspool(1) for mailbox locking, have theGilles Chehade
mailbox created by smtpd for mbox before privileges are dropped then we can call mail.local(8) with the recipient privileges. ok millert@