Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2013 09:57:53 -0500
From:      Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org>
To:        freebsd-bugs@freebsd.org
Subject:   Re: misc/184117: dhclient does not parse /etc/dhclient.conf correctly
Message-ID:  <447gc3t91q.fsf@be-well.ilk.org>
In-Reply-To: <201311201223.rAKCNWNu046960@oldred.freebsd.org> (Tomasz CEDRO's message of "Wed, 20 Nov 2013 12:23:32 GMT")
References:  <201311201223.rAKCNWNu046960@oldred.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Making all options work with the "option-nnn" syntax would best be done
by importing a newer version of the ISC code. For defined option types,
it's better to use the official names because that way type handling is
enabled as well.

The user-class option is not in the dhcp_option_default_priority_list
array in sbin/dhclient/tables.c. Adding it (DHO_DHCP_USER_CLASS_ID) will
make the user-class option work. I.E.:

--- tables.c.~1~    2013-11-20 09:52:25.521743815 -0500
+++ tables.c        2013-11-20 09:53:33.733663843 -0500
@@ -365,6 +365,7 @@
	DHO_INTERFACE_MTU,
	DHO_ALL_SUBNETS_LOCAL,
	DHO_BROADCAST_ADDRESS,
+        DHO_DHCP_USER_CLASS_ID
	DHO_PERFORM_MASK_DISCOVERY,
	DHO_MASK_SUPPLIER,
	DHO_ROUTER_DISCOVERY,




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447gc3t91q.fsf>