summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2023-04-12Simplify code by folding uuid_attr() into PRT_protected_uuid().Kenneth R Westerback
No functional change.
2023-04-12Clarify logic in PRT_uuid_to_menudflt() by using find_gpt_menuitem().Kenneth R Westerback
No functional change.
2023-04-11Abstract find_[gpt|mbr]_menuitem() to simplify code andKenneth R Westerback
prepare for future uses. No functional change.
2023-04-11Simplify code by passing pointers to the appropriate type toKenneth R Westerback
find_gpt_desc() and find_mbr_desc(). No functional change.
2023-04-11Shuffle mbr and gpt function prototypes and declarations together.Kenneth R Westerback
No functional change.
2023-04-10Make GPT display of menu hex octet the same as the MBR display.Kenneth R Westerback
i.e. two digits.
2023-04-09Refactor and simplify GPT menu selection logic.Kenneth R Westerback
No intentional functional change.
2023-04-08A bit more guid vs uuid naming consistency.Kenneth R Westerback
No functional change.
2023-04-07Oops. Missed files in last commit.Kenneth R Westerback
2023-04-07Add helper functions find_mbr_desc() and find_gpt_desc() to allowKenneth R Westerback
checking mbr_type[N].mt_desc and gpt_type[N].gt_desc before using name on menu when printing out partition tables. Tweak logic in find_mbr_type() and find_gpt_type() to be a bit more paranoid. Tweak function/variable names to be more in line to usage. No functional change as all mt_desc and gt_desc are currently NULL.
2023-04-06Markup route flags to get tagsKlemens Nanni
":tM" to jump to the definition of RTF_MODIFIED is easier and faster than manually navigating there. OK schwarze
2023-04-05Add (inside #if 0 blocks) #define's and gpt_types[] entries forKenneth R Westerback
all the GPT partition types known to mankind. a.k.a. Wikipedia, Linux, and various BSD's. Makes it easier to discuss/add/remove/check GUID's known to fdisk(8). No functional change.
2023-04-04Adopt a more compact idiom when initializing gpt_types[]. GroupKenneth R Westerback
entries with attributes together. No intentional functional change.
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@