summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/server4/server_test.go
AgeCommit message (Collapse)Author
2019-03-29server4 test: pick ports > 32kChris K
2019-03-27client4: add a new DHCPv4 client.Christopher Koch
- Able to send UDP packets before interface is configured. - Able to use any net.PacketConn. - RFC2131-compliant retransmission logic. - Tests. - Race-condition-averse. Previous clients (both mine and the ones here) are prone to race condition errors. Having one and only one place that calls receive on the socket "continuously" without having to coordinate hand-offs makes the logic way easier to follow, and allows for multiple requests in flux at a time. Signed-off-by: Christopher Koch <chrisko@google.com>
2019-01-28dhcpv4: moved client into dhcpv4/client4Andrea Barberio