Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2013 13:51:47 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        CeDeROM <cederom@tlen.pl>
Cc:        FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: bug in dhclient / dhclient.conf / dhcp-options parser?
Message-ID:  <44vbzogr7g.fsf@lowell-desk.lan>
In-Reply-To: <CAFYkXjmVsAS9kLZia_Q5MDBHcDW0V9k1aO-YZi6-deERP-rXog@mail.gmail.com> (cederom@tlen.pl's message of "Tue, 19 Nov 2013 15:58:07 +0100")
References:  <CAFYkXjnrr5B=jNR_mtUCbcRcyCMqv96vTC=wxhEmdDU+VYPa_A@mail.gmail.com> <CAFYkXj=cDhH79C0b9B7Sq08ZbcQFAfHK+3t9xaqTMuHbF5wdTw@mail.gmail.com> <441u2cih07.fsf@lowell-desk.lan> <CAFYkXjmVsAS9kLZia_Q5MDBHcDW0V9k1aO-YZi6-deERP-rXog@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
CeDeROM <cederom@tlen.pl> writes:

> On Tue, Nov 19, 2013 at 3:49 PM, Lowell Gilbert
> <freebsd-questions-local@be-well.ilk.org> wrote:
>> See the manual ("man 5 dhcp-options").
>>
>>                                                          Options which are not
>>      listed by name may be defined by the name option-nnn, where nnn is the
>>      decimal number of the option code.
>>
>> You can only specify options by number if the dhcp client doesn't know
>> the syntax/semantics for that particular option.
>
> Hello Gilbert :-) I know that document already :-) There is neither

Gilbert is actually my surname. All three of my names are reasonably
common as both first *and* last names -- so I don't use my middle name,
to avoid unnecessary confusion.

> "vendor-class-identifier" nor "user-class" options in the basic
> FreeBSD DHCP Client, so I want to use option-060 and option-077 but
> none of those work (I also tired option-60 and option-77 with no
> result), while other values work (i.e. option-088 or option-123), this
> is the problem :-)
>
> These options work in isc-42-dhcp-client, so there seems to be
> something wrong with native DHCP Client...

In the sources for my RELENG_9 system, those are "dhcp-class-identifier"
and "user-class", respectively. These appear to be the names used in the
port as well. dhcp-class-identifier works, but user-class does not. The
problem appears to be that it is missing from the array
dhcp_option_default_priority_list in tables.c. The user class option
hasn't been deprecated or otherwise have a good reason that I can see
for being left out, so I think it's just a bug and the option should be
added back in. There are 3 or four other options that are missing from
that list; I wonder what they are.

Good luck.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?44vbzogr7g.fsf>