summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2023-03-18sourceaddr:Jason McIntyre
- show that -ifp and "address" do not mix - show how to reset value (from claudio) - tweak text ok claudio
2023-03-17Adjust sourceaddr argument parser.Claudio Jeker
Only print the sourceaddrs if no argument was passed. If arguemnts are set make sure that either and address is present or that an ifp was given. This make the command behave a more like other route commands. OK deraadt@
2023-03-15tweak sourceaddr:Jason McIntyre
- remove "-inet|-inet6" as it is not generally meaningful - remove the qualifier "if set": sourceaddr now works nicely in cases where no "address is given
2023-03-15For now pass AF_UNSPEC to printsource() to ensure that both inet and inet6Claudio Jeker
addrs are fetched from the kernel. This needs more cleanup.
2023-03-15Make route sourceaddr always print the used addresses for inet and inet6.Claudio Jeker
Print 'default' if no sourceaddr is set and the default algorithm is used. With and OK kn@ deraadt@
2023-03-10Fix possible leak of spibuf and flowbuf in error case.Tobias Heider
ok patrick@ bluhm@
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2023-03-07Avoid enabling TSO on interfaces which are already attached to a bridge.Jan Klemkow
with tweaks from claudio and deraadt ok claudio, bluhm
2023-03-07Delete obsolete /* ARGSUSED1 */ lint comments.Philip Guenther
ok claudio@ cheloha@ krw@ deraadt@ miod@ millert@
2023-03-07restore tags for commands lost in r1.112 restructuring; OK jmcKlemens Nanni
2023-03-07mpls gateway clarification; from claudioJason McIntyre
2023-03-06Use GPT_UUID_NBSD_UFS, not GPT_UUID_FBSD_DATA, for NetBSD GPTKenneth R Westerback
partition entries. Add GPT_UUID_LEGACY_MBR entry to list of known partition id's as it is defined in the UEFI Standard.
2023-03-06Define a few more attributes for the sake of the readattr subcommand;Miod Vallat
curated and contributed by Brian Conway, thanks!
2023-03-06Use nitems() of source and destination partition arraysKenneth R Westerback
rather than assuming they are the same size. Zero destination entries when no source partition available. No intentional functional change.
2023-03-05Fix clean process shutdown by storing env globally like vmd and httpd doTobias Heider
instead of getting it from p_ps. The old approach does not work anymore after the recent fork + exec update. ok patrick@
2023-03-04Don't whine about invalid start/end values whenKenneth R Westerback
starting to edit an unused GPT partition.
2023-03-04Sync proc.c from vmd(8) to enabled fork + exec for all processes. This givesTobias Heider
each process a fresh and unique address space to further improve randomization of ASLR and stack protector. ok bluhm@ patrick@
2023-03-04Use nitems() in the simple iterations over mbr->mbr_prt[].Kenneth R Westerback
No intentional functional change.
2023-03-04Toss in some const's to ensure that static data pointed toKenneth R Westerback
by function return values is not fiddled with. No intentional functional change.
2023-03-03namservers -> nameserversJonathan Gray
2023-03-02restructure the page into one single list for all routing commands;Jason McIntyre
while there, whack anything either out of date or not useful joint work with claudio
2023-03-02improve the Nd lines such that the format is consistent for theJason McIntyre
various *d, *conf, *ctl files (where relevant) and simple; also makes "man -k routing" more useful; help from claudio and florian ok claudio florian millert
2023-03-02No need to protect exports from SIGHUP, the handler just sets a flag.Todd C. Miller
The signal handlers in mountd.c were made safe in rev 1.34 from 2001. OK bluhm@ kn@
2023-03-01Fix potentially uninitialized use of variable fsb on error.Todd C. Miller
OK mbuhl@
2023-02-27sort VEB and add "rules"; ok stspJason McIntyre
2023-02-27Add missing documentation of veb(4) ioctls to the ifconfig(8) VEB section.Stefan Sperling
These ifconfig commands are supported by veb(4) but were undocumented: deladdr flushrule maxaddr rule rulefile static timeout up As was done before, copy relevant prose from the BRIDGE section. ok jmc@
2023-02-21some nameserver proposal bits:Jason McIntyre
unwind.8: point to resolvd(8) for autoconf sources unwind.conf.5: order preferred list by order of preference resolvd.8: reformat to read better route.8: no need to discuss unwind in the nameserver command umb.4 + sppp.4: note the sending of nameserver proposals the umb/sppp text is from claudio tobhe confirmed iked sending proposals when configured to do so much assistance and ok: florian claudio
2023-02-20Rework/modernize verbiage in the "AUTOMATIC DISK ALLOCATION" andKenneth R Westerback
"EXAMPLES" sections. Build tables with 'Bd -column' instead of tabs inside 'Bl -literal'. Columns now line up (more or less) in text, .pdf and .html versions. Prompted by kn@, feedback & suggestions from jmc@ and schwarze@.
2023-02-18Missing spaceClaudio Jeker
2023-02-18Fix possibly uninitialized variable in editor_allocspace(); ok krw@Miod Vallat
2023-02-15proc_ispeer() is not used anywhere anymore so remove it everywhere.Tobias Heider
ok florian@ bluhm@ ok for vmd mlarkin@
2023-02-15Use correct order of arguments for shutdown(2).Florian Obser
Luckily routesock would never be <= 2 so shutdown would always failing with EINVAL and not shutting down random other sockets. The kernel was just uselessly piling up route messages that we were never reading. This mistake first showed up in slaacd(8) and then was copied to the other daemons. Reported & fixed by Josiah Frentsos (jfrent at tilde.team), thanks! OK kn
2023-02-14Add -mpls to the route monitor case. It is an allowed address family.Claudio Jeker
OK sthen@ florian@
2023-02-14Typofix -ssthresh in HISTORYKlemens Nanni
2023-02-10Add support for configuring multiple name servers as roadwarriorTobias Heider
client. This allows us to have a fallback in case one connection fails. Tested by Ryan Kavanagh ok patrick@
2023-02-08iked: remove another unused variableTheo Buehler
It is not entirely obvious if some logic was forgotten or if that variable was added for debug logging or... Be that as it may, as tobhe points out, this variable has been unused since the initial import of iked. The logic seems sound without it, so it has never served a purpose and can go. ok tobhe
2023-02-08iked: garbage collect an unused counter variable to make clang 15 happierTheo Buehler
ok tobhe
2023-02-08dump/fsck_ffs: convert two function definitions to ansi, missedTheo Buehler
in previous passes some decades ago. Less noise from clang 15. ok claudio
2023-02-08isakmpd: add missing void to a function definitionTheo Buehler
Fixes -Wstrict-prototype warning seen with clang 15 on amd64 and arm64.
2023-02-08unwind: add two missing void to function definitionsTheo Buehler
Silences -Wstrict-prototype warnings seen with clang 15 on amd64 and arm64. ok florian
2023-02-07internal representation of icmp type/code in pfctl(8)/pf(4) does notAlexandr Nedvedicky
fit into u_int8_t. Issue has been noticed and kindly reported by amalinin _at_ bh0.amt.ru via bugs@. OK bluhm@
2023-02-07home.arpa is a special-use domain, internally answered by libunbound.Florian Obser
Let it through to forwarders like we do with AS112 domains because home.arpa might be useful in the local network. Issue reported by Ryan Kavanagh (rak at rak.ac), thanks! Input & OK tb
2023-02-07Extend template parsing to allow "[mount point] *" as the specification forKenneth R Westerback
putting the maximum available free space into a partition. Extend command line parsing to allow 'T-' as the specification to read the template file from stdin. Prompted by, feedback, testing and ok kn@
2023-02-04correct history, shutdown(8) appeared in 4.1BSD before 4.1cJonathan Gray
"shutdown Is a new command which shuts the system down at a specified time." Bug fixes and changes in 4.1bsd May 10, 1981 from bitsavers bits/BSD/BSD4.1_bootable.tap.gz /usr/man/man0/changes.4-81 There may have been some confusion when checking against CSRG archives. The 4.1 there is 4.0 with a "4.0.upgrade" directory with 4.1 files such as 4.0.upgrade/etc/shutdown. And 4.1a isn't a full tree. In SCCS shutdown.c starts on Feb 7 1981.
2023-02-02Tweak restored code chunk to eliminate duplicate checks.Kenneth R Westerback
2023-02-02Restore incorrectly deleted test for default partitions intrudingKenneth R Westerback
into the OpenBSD area that is about to be auto-allocated. Fixes resizing partitions on an auto-allocated disk that had a boot partition. Found by dv@
2023-01-28Nuke unused variable.Kenneth R Westerback
2023-01-25Use getpartno() in editor_delete(), enhancing getpartno() toKenneth R Westerback
allow '*' to select all partitions when the action is 'delete'. No intentional functional change.
2023-01-24Use getpartno() in editor_add(), enhancing getpartno() to findKenneth R Westerback
the default partition and allow selection of partitions up to MAXPARTITION. No intentional functional change.
2023-01-22Fix incorrect comparison. Restores ability to edit 'p'.Kenneth R Westerback