dhcpcd
dhcpcd copied to clipboard
Multiple variable type for same custom option
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
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