[PATCH] dhcp: add RFC5970 options to dhcp

Neil Horman nhorman at tuxdriver.com
Thu Mar 1 13:59:04 UTC 2012


On Thu, Mar 01, 2012 at 01:14:20PM +0100, Jiri Popelka wrote:
> On 03/01/2012 01:06 PM, Neil Horman wrote:
> >On Thu, Mar 01, 2012 at 10:58:19AM +0100, Jiri Popelka wrote:
> >>Shouldn't the net-id be defined as
> >>	{ "net-id", "BBB",		&dhcpv6_universe, 62, 1},
> >>?
> >>
> >I thought so too, at least according to the RFC, but the use of BBB seems to
> >introduce parser problems (either that or I have the wrong syntax for providing
> >3 bytes in dhcpd.conf).  I had assumed a format of BBB could be specified as:
> >
> >option dhcp6.net-id 1,2,3;
> >
> >Is that incorrect?
> 
> option dhcp6.net-id 1 2 3;
> works for me when net-id is defined as BBB
> 
Odd, something must be flaky in my build then, as that causes parser errors for
me.  Regardless, I agree, thats the correct format.  I'll repost with that fix.
Neil

> --
> Jiri
> 


More information about the dhcp-hackers mailing list