summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2021-08-30Accept dns proposals for the loopback addressesKlemens Nanni
Don't reserve^Wignore them for unwind(8); there are non-unwind use-cases and so far resolvd(8) always seems to do the right thing when proposing localhost while unwind is running. OK benno
2021-08-30Fix max nameserver proposals limitKlemens Nanni
Count the total number of proposals and not five per address family each. Don't print ignored addresses by default anymore and leave that to `-v'. OK benno
2021-08-30Clarify how dns proposals are replaced not added per interfaceKlemens Nanni
OK benno
2021-08-30INADDR_LOOPBACK check needs htonl(3) to workKlemens Nanni
Found in resolvd(8) which uses the same code.
2021-08-30INADDR_LOOPBACK check needs htonl(3) to workKlemens Nanni
2021-08-29nameserver command requires an interface argumentKlemens Nanni
2021-08-29Nuke unused variable and unnecessary initialization.Kenneth R Westerback
2021-08-28Add hex_octet() so the strtol(..,16) dance is done in just oneKenneth R Westerback
place. Allows single-digit partition id's in '-b' as a side benefit.
2021-08-27Replace stray hand-rolled nitems() with nitems().Kenneth R Westerback
2021-08-25Two more Capt. Obvious comments go away.Kenneth R Westerback
2021-08-25Don't use log_procname before it is initialized. In particularKenneth R Westerback
set_iff_up() is called from initialize_interface() and was using log_procname instead of ifi->name in its fatal()'s. Diagnosed by tb@ from a recent reddit post by zielonykid1234.
2021-08-25Consolidate '-e' edit command parsing into ask_cmd(), simplifyingKenneth R Westerback
the main '-e' loop. No functional change.
2021-08-24Add an #ifdef DEBUG/#endif chunk that dumps the entire GPT header whenKenneth R Westerback
printing a GPT. No functional change outside of DEBUG.
2021-08-24When an interface disappears, e.g. when a usb dongle gets unplugged,Florian Obser
we get a RTM_IFANNOUNCE message not a RTM_IFINFO message. Handle this message to not accumulate "unknown" interfaces. While here fix a bug where we would remove an interface only in the engine process but not in the frontend when an interfaces gets unplugged while we process a RTM_IFINFO message for it. OK benno
2021-08-24When an interface disappears, e.g. when a usb dongle gets unplugged,Florian Obser
we get a RTM_IFANNOUNCE message not a RTM_IFINFO message. Handle this message to not accumulate "unknown" interfaces. OK benno
2021-08-24use Pa for resolv.conf.tail, since there is no longer a man pageJason McIntyre
to Xr;
2021-08-24make SYNOPSIS match usage to indicate -l is optional in:Jason McIntyre
swapctl [[-l] | -s] [-k] from martin vahlensieck
2021-08-24A couple more Capt. Obvious comments can go.Kenneth R Westerback
2021-08-24Trim leading/trailing whitespace from -e input to make commandKenneth R Westerback
parsing more robust (e.g. 'edit 0 ' is now accepted) and strict (e.g. 'reinit gptx' is now rejected). Input which may want that whitespace is not trimmed (e.g. GPT partition names). Use consistent definition of whitespace corresponding to that used by isspace().
2021-08-23Say which read failed, helps debugging.Florian Obser
2021-08-23We don't have a config file on the ramdisks; prevents a warning.Florian Obser
2021-08-23Since we have a config file now we should Xr its manpage.Florian Obser
From Scott Bennett, thanks!
2021-08-18Add veb(4) to the list of pseudo devices that can be created.solene
ok deraadt@
2021-08-17document 11ac as a valid wireless mode; ok stspJason McIntyre
2021-08-15Don't check & errx() after each and every invocation ofKenneth R Westerback
string_from_line(). Just errx() inside string_from_line() if getline() fails. Use strcspn() idiom to nuke '\n' returned by getline(). No functional change.
2021-08-14Use new val-max-restart: 0 option to stop unwind from trying differentFlorian Obser
authorities when encountering a validation error. This only helps one particular case of validation errors: When authorities are out of sync and some carry old zones. In all other cases this causes a huge amount of work that will just end in a SERVFAIL because the result will still be bogus. OK sthen
2021-08-14Fix "no previous prototype" warningFlorian Obser
OK sthen as part of a larger diff
2021-08-14sync to unbound 1.13.2Florian Obser
OK sthen
2021-08-12Oops. Lost a 'nitems()' chunk during last commit. Don'tKenneth R Westerback
segfault on invalid edit commands.
2021-08-12Make it possible to ignore routes or nameservers from a lease as wellFlorian Obser
as ignoring servers entirely. Tested by bket Parser looks reasonable to benno man page OK jmc
2021-08-12Further reduce cross-file confusion by adding USER_help() andKenneth R Westerback
calling it from Xhelp(). Move declaration of struct cmd to nestle next to its only instantiation (cmd_table) and use nitems() when scanning cmd_table. No functional change.
2021-08-10Go back to using Xwrite() during initialization phase to makeKenneth R Westerback
sure the same verbiage is emitted as previously. i.e. "Writing MBR at offset 0". Fixes regress complaints.
2021-08-10Eliminate single use 'error' vars by directlyKenneth R Westerback
testing MBR_read() return value. No intentional functional change.
2021-08-07style(9) says sort getopt() options and the following switch {}Kenneth R Westerback
cases. Make it so. In passing nuke a single use 'error' variable and move an *errstr declaration nearer to its friends. No intentional functional change.
2021-08-07Nuke a few Capt. Obvious comments.Kenneth R Westerback
2021-08-07Nuke unneeded #include's, one param.h -> types.h.Kenneth R Westerback
2021-08-07Nuke 'p' that r1.97 snuck into getopt() invocation back in 2015.Kenneth R Westerback
2021-08-07Comment typo 'mmbr' -> 'mbr'.Kenneth R Westerback
2021-08-07Go to REBOOTING state when interface config changed on reload.Florian Obser
This tries to reaquire the current lease and if that failes will send a DHCPDISCOVER message to request any lease. OK benno
2021-08-06Cleanup, clarify and generally polish the MBR/GPT initializationKenneth R Westerback
code. '-g' is promoted to be independant of '-i'. This makes it clearer that there are four mutually exclusive initialization options. '-i' puts the default MBR on disk, '-g' puts the default GPT on disk, '-u' updates the MBR boot code on disk and '-A' puts a new set of GPT partitions on disk without overwriting 'protected' partitions. The last initialization option specified is the one executed, so existing '-i -g' finger memory, etc. continue to work as before. man page/usage feedback/tweaks from jmc@
2021-08-05for nameserver usage, show multiple addresses as "address ..."; ok bennoJason McIntyre
while here, Pa->Xr for resolv.conf;
2021-08-05superflous -> superfluousTheo Buehler
2021-08-05mark up the nameserver command;Jason McIntyre
2021-08-05sort the new nameserver text; rework it a little; sort SEE ALSO;Jason McIntyre
2021-08-04reference route(8) new nameserver command.Sebastian Benoit
2021-08-04Add a new 'nameserver' command to route(8).Sebastian Benoit
It sends nameserver proposals to resolvd(8) using the dns proposal protocol over the route socket. Based on a seperate program written by florian@. deraadt noticed some whitespace issues. more fixes and ok florian@
2021-08-04Do not enter a tight INIT -> REQUESTING -> INIT loop when the dhcpFlorian Obser
server responds to our DHCPDISCOVER but is then slow to respond to our DHCPREQUEST. MAX_EXP_BACKOFF_FAST was introduced to get us quickly out of the REBOOTING state when we switch networks and no dhcp server would NAK our old lease but just ignore us. This is not the issue here, there is a dhcp server willing to talk to us, it's just slow. Problem reported, tested & OK jca
2021-08-03Increase default data bytes limit for Child SAs to 4 GB.tobhe
Lower limits lead to excessive rekeying and lost data in high performance setups without much benefit. Brought up by mvs@ ok patrick@ sthen@
2021-08-01Do not abuse the IMSG_CTL_SEND_REQUEST imsg to transition toFlorian Obser
REBOOTING. There will be a few more cases internal to dhcpleased that have nothing to do with the control socket. While here move requesting a new lease via a call to dhclient under ifndef SMALL, nothing on the ramdisk uses this.
2021-07-28fix broken small build; ok florian@anton