summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2023-04-02Use #define instead of `char * const' for the repeated GUID strings. Ugly,Miod Vallat
but restores compilability with older compilers such as gcc. No intentional functional change.
2023-04-01Use char * const for the rest of the repeated GUID strings. MoreKenneth R Westerback
readable, less prone to typos. No intentional functional change.
2023-03-31Add missing NULL check after group_get()Theo Buehler
Otherwise dh_getlen() will dereference ie->group and crash. looks correct to hshoexer
2023-03-31Refactor partition type menu code, disentangling mbr and gptKenneth R Westerback
partition types from menu building and display. Some GPT partition names change to match their MBR bretheren. No intentional functional change.
2023-03-31Oops. Missed eliminating unneeded double quotes in previous.Kenneth R Westerback
2023-03-31Be more consistent in function naming. Functions taking orKenneth R Westerback
returning struct uuid's use 'uuid' in their names. Lengthen a pointlessly short line. No functional change.
2023-03-31Guard use of GROUP_EC2N with #ifndef OPENSSL_NO_EC2MTheo Buehler
This allows compiling isakmpd with a libcrypto that has binary field support removed. Leave the enum value itself unguarded on claudio's request. ok beck claudio jsing
2023-03-30Use 'char * const' instead of #define for repeatedKenneth R Westerback
GUID strings. Consistently use strcasecmp() when comparing GUID's, allowing use of simple 'char *' for gt_guid. No intentional functional change.
2023-03-30i2d_ECDSA_SIG() may return a negative value in case of error.Alexander Bluhm
Do no use this as length in iked(8) _dsa_verify_prepare(). OK tobhe@ tb@
2023-03-30Remove needless memset() call, 'entries' variable andKenneth R Westerback
limit check in PRT_menuid_to_guid(). No functional change.
2023-03-29Change 'type' to 'menuid' in various struct's, functions andKenneth R Westerback
variables related to gpt partitions. Makes it clear that there is no required tie between mbr partition types and gpt partition types. No functional change.
2023-03-29No need to assume a nil GUID can be found at gpt_types[0]. JustKenneth R Westerback
use uuid_create_nil(). No functional change.
2023-03-29Simplify code by having PRT_uuid_to_type() return -1 whenKenneth R Westerback
no type can be found. 0 is a valid type! No functional change.
2023-03-28Avoid double free in isakmpdTheo Buehler
In the unlikely event that EC_KEY_check_key() in ec_init() fails, group->ec would be freed first in ec_init() then in group_free(). Same problem was fixed in iked/dh.c r1.31 (where it originally came from). ok jsg mbuhl
2023-03-26Pass lbuf/lbuflen to PRT_print_[mbr|gpt]_menu() to allow changesKenneth R Westerback
to the original input. Just zap it for now. No functional change.
2023-03-26Add EFI_SYSTEM_PARTITION_GUID #define and use it to check forKenneth R Westerback
protection. No functional change.
2023-03-26Add MICROSOFT_BASIC_DATA_GUID #define to make clear what menuKenneth R Westerback
items result in the same GUID. Easier to spot and more resistant to simple typos in a 36 character hex string. No functional change.
2023-03-25Add comments documenting possible sources for MBR partition typesKenneth R Westerback
and GPT partition GUIDs. No functional change.
2023-03-25Move LINEBUFSZ to be with its friends in misc.h.Kenneth R Westerback
Nuke unused HELPBUFSZ. No functional change.
2023-03-25Rename ascii_id() find_mbr_type(), make it a bit more like itsKenneth R Westerback
sibling find_gpt_type(), tweaking PRT_print_part() as needed. No functional change.
2023-03-25Make *_name fields char * instead of char[]. Specify desiredKenneth R Westerback
width of output in printf() rather than "%-*s" and sizeof(name) + 1. Clearer, may even save some bytes as many names are shorter than the max. Rename PRT_print_mbrtypes() to PRT_print_mbrmenu() and PRT_print_gpttypes() to PRT_print_gptmenu() to remove implied completeness of list presented in menu. No functional change.
2023-03-25Rename *_sname fields/functions to *_name to remove impliedKenneth R Westerback
shortness of the names. No functional change.
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@.