freebsd-skq/sbin/dhclient
Brooks Davis f954ec0bcf Introduce a new helper function check_search() derived for res_hnok to
check the domain-name parameter according to the rules for "search"
strings as documented in resolv.conf(5).  Specifically, the string must
be no more than 256 bytes long and contain no more than six valid domain
names separated by white space.

The previous unchecked values could result in a mangled resolv.conf
file which could effectively deny access to local sites.  This is not
a security issue as rogue dhcp servers could already do this without
sending invalid strings.

Reviewed by:	cperciva
MFC After:	3 days
2005-08-30 18:20:46 +00:00
..
alloc.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
bpf.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
clparse.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
conflex.c In read_string(), when the last character was a backslash, unincrement 2005-08-26 01:25:59 +00:00
convert.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
dhclient-script The $medium string often contains quoted values with spaces in them (ssids, 2005-08-26 20:31:04 +00:00
dhclient-script.8 Line up the markup. 2005-06-22 14:55:59 +00:00
dhclient.8 Bump document date. 2005-07-20 23:12:54 +00:00
dhclient.c Introduce a new helper function check_search() derived for res_hnok to 2005-08-30 18:20:46 +00:00
dhclient.conf Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
dhclient.conf.5 Line up the markup. 2005-06-22 14:55:59 +00:00
dhclient.leases.5 Line up the markup. 2005-06-22 14:55:59 +00:00
dhcp-options.5 Line up the markup. 2005-06-22 14:55:59 +00:00
dhcp.h Don't complain when we receive smtp, pop, nntp, www, finger, and irc 2005-06-30 05:50:52 +00:00
dhcpd.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
dhctoken.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
dispatch.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
errwarn.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
hash.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
inet.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
Makefile Install the dhcp-options.5 manpage. 2005-06-25 11:03:06 +00:00
options.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
packet.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
parse.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
privsep.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
privsep.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00
tables.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
tree.c Add __FBSDID to all .c files in dhclient to aid in determining file 2005-08-23 23:59:55 +00:00
tree.h Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag 2005-06-07 04:05:09 +00:00