Date: Wed, 18 Dec 2013 11:00:29 +0100 From: CeDeROM <cederom@tlen.pl> To: Darren Pilgrim <list_freebsd@bluerosetech.com> Cc: freebsd-net@freebsd.org, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org> Subject: Re: bug in dhclient / dhclient.conf / dhcp-options parser? Message-ID: <CAFYkXjnuzaEAvZP8ZuyXRoi5VAUWCeN3jZf9QdKAgpZmSqDzAA@mail.gmail.com> In-Reply-To: <52B1713D.5060203@bluerosetech.com> References: <CAFYkXjnrr5B=jNR_mtUCbcRcyCMqv96vTC=wxhEmdDU%2BVYPa_A@mail.gmail.com> <52B1713D.5060203@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Naah, "option-n" should work for all options aside ascii names that vary ascross implementations :-) Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info On Dec 18, 2013 10:56 AM, "Darren Pilgrim" <list_freebsd@bluerosetech.com> wrote: > On 11/19/2013 6:09 AM, CeDeROM wrote: > >> Hello :-) >> >> I need to send additional options with dhcp request, so I add "send" >> option for an interface in /etc/dhclient.conf, however options are >> non-standard and they use option value below 100 and they are not sent >> in dhcp request. I have noticed that other options with names known to >> dhcp-options and decimal numbers above 100 are sent correctly, so >> maybe there is an error in the options number parser, or I do >> something wrong? >> >> Here is my example /etc/dhclient.conf configuation: >> >> interface "em0"{ >> send option-060 "vendor"; <-- does not go out in dhcp request >> send option-077 "user"; <-- does not go out in dhcp request >> send option-123 "blah123"; <-- goes out in dhcp request >> send root-path "blahroot"; <-- goes out in dhcp request >> } >> >> Please advise, quick solution appreciated :-) >> > > The "option-n" options only work for unknown codes. Option codes 60 and > 77 are known as dhcp-class-identifier and user-class, respectively. Both > are formatted as ASCII text. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjnuzaEAvZP8ZuyXRoi5VAUWCeN3jZf9QdKAgpZmSqDzAA>