ifchd just had empty hooks that never received work messages anyway.
Shorten the names of ifchd commands. This breaks wire protocol, but
thankfully I haven't released yet!
Define _GNU_SOURCE in the CFLAGS.
Update the README.
Remove the duplicate Gentoo init script ndhc.sh that is in the root.
Remove DESIGN -- it's outdated.
sure that it matches that of our associated DHCP server.
Normalize, prune, and beautify the appearance of log messages.
Minor cosmetic cleanups/refactoring.
when the hardware link carrier is dropped and comes back. Also, don't assume
that all networks have a default gateway.
Guard against spurious arp defense attempts that might be triggered by packets
that are still in the socket buffer from before the BPF was changed.
Split apart the AS_GW_CHECK and AS_GW_QUERY timeout handlers.
Cosmetic cleanups in state.c.
packet response functions are handled by an array of function pointers indexed
by ARP state.
Split arp_retransmit() apart into simpler functions.
Fix a typo in renewing_timeout() that would result in too-short timeouts that
would soak cpu.
Call handle_arp_timeout() from the timeout_action() function rather than
having
explicit hooks in various <dhcpstate>_timeout() functions.
Make the function pointer arrays static const.
handle_arp_response() and when opening a new arp fd. Do not clear the
arpreply buffer and offset on ARP state transitions.
Only perform ARP collision probing when binding a new lease from the
DS_REQUESTING state, or if we have renewed or rebound a lease with a different
IP than we had before.
Resequence the arp_dhcp_packet memcpy() in arp_check() so that the current
IP address is ARP checked rather than the previous one.
ifchd if it is necessary to do so, just as is the case for other keywords.
Make data sending in ifchange_*() collect all keywords into a buffer that
is sent in a single sockwrite() rather than performing a sockwrite() for
every keyword.
Minor documentation updates.
hardware link returns after having been lost.
Make the timeout action for DS_BOUND_GW_CHECK perform ARP retransmissions
rather than just sending a single query.
RFC5227. Rate-limiting is also supported.
Keep ARP stats per packet send type rather than per ARP state. Use the new
stats to replace last_def_ts.
Multiple triggers of arp_gw_check from interface-up-events in quick succession
could cause the dhcpState to become corrupt. Fix by making the ARP_GW_CHECK
be level triggered rather than edge triggered.
Make the timeout calculations in the ARP retransmission code much more
accurate.
Close the ARP fd if we give up on lease defense and go back to requesting a
new lease.
Do a second arp_announcement() after finding the default GW's hwaddr.
Clean up frenew to sanely handle the various ARP checking events. Now renew
signals will be ignored during these states. It was particularly insane
before if a renew signal were received during DS_COLLISION_CHECK.
If the hardware link carrier goes down, do not sleep. Just keep working.
Only go to sleep if the user explicitly deconfigures the interface. This
change is far more sane for non-mobile hosts, and still works fine with
roaming machines: the important thing is the gw hardware address checking that
is triggered when the interface comes back up.
state to what it was before closing the fd. It may allow the client to
continue working in the face of error, as arp functionality is not critical
for simply holding a lease.