dhcpcd-discuss

Re: DHCP Options

Ram Kumar Koppu

Thu Mar 10 12:34:37 2011

Roy,
We would like to add options 242, 243, 244 and 245 for our application
purpose. Do I need to release these changes to open source communiry?
(Because of extra options added stuff to dhcp.c ). Please suggest me if I
need to release the code changes for this code hacking.

Regards
Ram



On 9 March 2011 23:12, Roy Marples <roy@xxxxxxxxxxxx> wrote:

> Hi
>
> On Wed, 2011-03-09 at 22:02 +0000, Ram Kumar Koppu wrote:
> > Hi,
> > Today I was testing dhcp 4 and 5 versions in my device and found that
> > it is not supporting user defined options. I would like to use option
> > 242 or 243 to get SIP server IP from DHCP server. After seeing the
> > dhcp 4 and 5 code I found only up to options 119 are defined in struct
> > dhcp_opt in dhcp.c code. How do I use proprietary option in my dhcp
> > client? for example, how to add option 242, 243 in dhcpclient to get
> > application server IP adresses from DHCP server?
>
> Well, dhcpcd currently does not support user defined options, which is a
> defect. To date, only you have asked for this so I guess the need for it
> isn't that great.
>
> Currently the only way to do this is to modify dhcp.c directly and add
> the options with the appropriate decoding.
>
> Checking my sources, I have options to decode RFC3361 SIP servers, but
> no option 120 which is for SIP servers. If I added this, would it
> satisfy your needs? I assume that 242 and 243 are custom options you
> have added to your DHCP server?
>
> Thanks
>
> Roy
>
>

References:
DHCP OptionsRam Kumar Koppu
Re: DHCP OptionsRoy Marples
Archive administrator: postmaster@marples.name