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:
parent
76c6134966
commit
b388f1cb10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147686
@ -2234,7 +2234,6 @@ check_option(struct client_lease *l, int option)
|
|||||||
}
|
}
|
||||||
return (1) ;
|
return (1) ;
|
||||||
case DHO_HOST_NAME:
|
case DHO_HOST_NAME:
|
||||||
case DHO_DOMAIN_NAME:
|
|
||||||
case DHO_NIS_DOMAIN:
|
case DHO_NIS_DOMAIN:
|
||||||
if (!res_hnok(sbuf)) {
|
if (!res_hnok(sbuf)) {
|
||||||
warning("Bogus Host Name option %d: %s (%s)", option,
|
warning("Bogus Host Name option %d: %s (%s)", option,
|
||||||
@ -2242,6 +2241,7 @@ check_option(struct client_lease *l, int option)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
return (1);
|
return (1);
|
||||||
|
case DHO_DOMAIN_NAME:
|
||||||
case DHO_PAD:
|
case DHO_PAD:
|
||||||
case DHO_TIME_OFFSET:
|
case DHO_TIME_OFFSET:
|
||||||
case DHO_BOOT_SIZE:
|
case DHO_BOOT_SIZE:
|
||||||
|
Loading…
Reference in New Issue
Block a user