CVSROOT:        /cvs
Module name:    src
Changes by:     k...@cvs.openbsd.org    2013/01/13 15:09:38

Modified files:
        sbin/dhclient  : dhclient.c options.c 

Log message:
Make pretty_print_option() return "" rather than "<fmt error>" when
the option fails validation tests. Make pretty_print_option() bail
on all bad format strings, and on all incorrect option data lengths.

Check pretty_print_option() return value rather than repeating
validation with check_option(). Do res_hnok() check on host name,
domain name, and nis domain while creating lease from packet info.

As a result, nuke ipv4addrs() and check_option().

Ignore options that do not validate rather than summarily rejecting
offered lease. Treat all options whose names start with "option-"
as unknown rather than relying on a big switch on DHO_ names.

Started when reading dhclient(8) -u verbiage.

Reply via email to