Move add_requests() from dhcpmsg.c to options.c. Fixes a layering violation.

Document an ugly-as-hell code bit in ifchange.c.
Add some debugging messages for the netlink response code.
Clean headers a bit more.
This commit is contained in:
Nicholas J. Kain
2011-03-30 07:26:42 -04:00
parent 3c85228aaf
commit 811cc67e16
5 changed files with 26 additions and 23 deletions

View File

@ -132,6 +132,7 @@ static void nl_handlemsg(struct nlmsghdr *msg, unsigned int len,
if (cs->dhcpState == DS_BOUND) {
/* arp_check_gw(cs); */
} else if (cs->dhcpState != DS_INIT_SELECTING) {
log_line("nl: taking down interface");
// Same as packet.c: line 258
ifchange(NULL, IFCHANGE_DECONFIG);
cs->dhcpState = DS_INIT_SELECTING;