lparkes / azure-agent

A port of the Azure Linux Agent to NetBSD
0 stars 1 forks source link

Extract DHCP option 245 from the DHCP lease #2

Closed lparkes closed 9 months ago

lparkes commented 9 months ago

The NetBSD dhcpcd program can print the DHCP lease in an easy to parse text format, but it doesn't print option 245 because it doesn't know about that option.

We should get Roy Marples to add support for option 245 to dhcpcd (send him the patch).

This is much better than the other Azure Agent alternative, but we won't be able to get this change into NetBSD 10.0.

lparkes commented 9 months ago

Stephen is currently using the name "azureendpoint" in the output from his version of dhcpcd, so let's use that name.

lparkes commented 9 months ago

I created PR https://github.com/NetworkConfiguration/dhcpcd/pull/284

lparkes commented 9 months ago

Preliminary fix in commit e9e5eb5. The option and encoding we look for might change in the future because option 245 is a site specific option and the dhcpcd maintainers might choose to implement it as site_specific_245 with binhex encoding rather than the azureendpoint with dotted decimal encoding that we have used so far. We'll cross that bridge when we come to it.