d2g / dhcp4client

DHCP Client
Mozilla Public License 2.0
38 stars 30 forks source link

Should be able to provide hostname with request #22

Closed onlyjob closed 5 years ago

onlyjob commented 6 years ago

Please implement feature to provide hostname.

Thanks.

d2g commented 6 years ago

The issue is the client does the full request, if you wanted to handle option 12 (http://www.networksorcery.com/enp/protocol/bootp/option012.htm) you'd need to split the request function in it's component parts.

If you've got a simple way of providing me a way to test the functionality (Virtual Machine?) I'll add an additional wrapper that support it out of the box.

onlyjob commented 6 years ago

I've used socket-activated cni-dhcp service from here with rkt network configuration from here. Starting any container with rkt would then request nameless DHCP address...

d2g commented 5 years ago

The v2 branch should now supports this:

Test_ClientWithOptions shows how to pass and receive DHCP options.