Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2013 09:48:59 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        CeDeROM <cederom@tlen.pl>
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:  <20131119174859.GB2279@funkthat.com>
In-Reply-To: <CAFYkXjnrr5B=jNR_mtUCbcRcyCMqv96vTC=wxhEmdDU%2BVYPa_A@mail.gmail.com>
References:  <CAFYkXjnrr5B=jNR_mtUCbcRcyCMqv96vTC=wxhEmdDU%2BVYPa_A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
CeDeROM wrote this message on Tue, Nov 19, 2013 at 15:09 +0100:
> 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 :-)

Are you trying to send option 60, or option 48?  060 may be being
parsed as an octal number instead of decimal, which would be 48
instead of 60..

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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