dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

Multiple variable type for same custom option

Open aadhee opened this issue 10 months ago • 1 comments

Hi All,

I have a requirement to use different variable types (binhex and string) for the same custom option 143 in the dhcpcd configuration.

I attempted the following in my config file:

define 143 request binhex bootstrap_servers define 143 request string bootstrap_servers

However, when I try to send a hex value from the server, I'm not receiving a response. Is there a way to use both binhex and string formats for the same option?

Thanks

aadhee avatar Mar 03 '25 18:03 aadhee

This isn't supported, you can only have one way of decoding an option.

C code is required for really dumb DHCP options like RFC3361 https://github.com/NetworkConfiguration/dhcpcd/blob/master/src/dhcp.c#L460

rsmarples avatar Mar 06 '25 13:03 rsmarples