Don't reuse the same buffer for all received packets.

A lease will reuse slices of the received packet copied to buffer
for e.g. ClientID, MACAddress etc.  Next dhcp packet received will
corrupt these memory locations.
1 file changed
tree: 0047e64e73388d5d0a4471b2654ebc770995146d
  1. leasepool/
  2. LICENSE
  3. README.md
  4. server.go
  5. server_test.go
README.md

dhcp4server GoDoc Coverage Status Codeship Status for d2g/dhcp4server

DHCP Server