dhcpcd-discuss

Re: DHCP Options

Roy Marples

Wed Mar 09 23:12:17 2011

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


Follow-Ups:
Re: DHCP OptionsRam Kumar Koppu
References:
DHCP OptionsRam Kumar Koppu
Archive administrator: postmaster@marples.name