nispor / mozim

DHCP Client Daemon
Apache License 2.0
11 stars 9 forks source link

Add support of releasing DHCP lease #7

Closed cathay4t closed 1 year ago

cathay4t commented 1 year ago

Supporting DHCPRELEASE via DhcpV4Client::release().

In normal mode, we use normal UDP socket to send unicast to server. In proxy mode, we use ethernet RAW socket to send unicast to server using the MAC address we got in the lease sent from DHCP server.

Integration test case included and manually confirmed dnsmasq log shows:

dnsmasq-dhcp: 1897809709 DHCPRELEASE(dhcpsrv) 192.0.2.51
00:11:22:33:44:55