betrusted-io / betrusted-ec

Betrusted embedded controller (UP5K)
Other
45 stars 6 forks source link

Tweak DHCP Renew & Rebind to better follow RFC #13

Closed samblenny closed 3 years ago

samblenny commented 3 years ago

This refactors the code for building DHCP packets so that:

  1. Renew uses unicast addressing
  2. Renew and Rebind omit the "Server ID" and "Requested IP" options and set the ciaddr field
  3. Renew and Rebind retries use a 60 second interval

(see commit comments for additional details)

I think this should pretty much finish out the DHCP implementation.

bunnie commented 3 years ago

thanks! lots of hard work there...