People like to do RFC violating things with the domain-name option and

include a space seperated list of domains instead of the domain of the
host.  This is supported on too many platforms to break for now so,
remove validation of this option for the moment.

The correct solution longer term is to implement RFC 3397 support and
then treat domain-name options containing space seperated lists of
domains as domain-search options for backwards compatability.

Approved by:	re (dhclient blanket)
This commit is contained in:
Brooks Davis 2005-06-30 05:32:42 +00:00
parent 76c6134966
commit b388f1cb10
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147686

View File

@ -2234,7 +2234,6 @@ check_option(struct client_lease *l, int option)
}
return (1) ;
case DHO_HOST_NAME:
case DHO_DOMAIN_NAME:
case DHO_NIS_DOMAIN:
if (!res_hnok(sbuf)) {
warning("Bogus Host Name option %d: %s (%s)", option,
@ -2242,6 +2241,7 @@ check_option(struct client_lease *l, int option)
return (0);
}
return (1);
case DHO_DOMAIN_NAME:
case DHO_PAD:
case DHO_TIME_OFFSET:
case DHO_BOOT_SIZE: