Nicholas J. Kain
4d739acbdd
Use a helper to ensure xid always changes when we advance it.
...
The purpose of the changing xid is to prevent misinterpreting
delayed messages, and the rare chance where it's randomly the
same breaks this sequence-id property.
2022-08-28 04:41:11 -04:00
Nicholas J. Kain
c755902fbc
Reseed the PRNG whenever we reset the DHCP state.
2022-08-28 04:00:06 -04:00
Nicholas J. Kain
d43fc12306
Advance the xid after we consume a DHCPACK or DHCPNAK.
...
This isn't strictly required by the RFC but it is good practice.
2022-08-28 04:00:02 -04:00
Nicholas J. Kain
1732bccccc
Relicense as MIT.
...
It's a lot more common than BSD 2-clause it is both compatible
and nearly identical in effect.
2022-02-06 20:05:29 -05:00
Nicholas J. Kain
8db8c5589d
Replace CMake with GNU Make.
...
There was previously support for both build systems, but ndhc is
undemanding and there is no point in maintaining a complex
CMake build.
2022-01-22 18:39:41 -05:00