Fix the return values of dhcp_packet_get and arp_packet_get.

This corrects a bug where stale dhcp packets would get reprocessed,
causing very bad behavior; an issue that was introduced in the
coroutine conversion.
This commit is contained in:
Nicholas J. Kain
2015-02-18 11:02:13 -05:00
parent a627e9dc9c
commit b3bd13d45f
7 changed files with 25 additions and 30 deletions

View File

@ -292,10 +292,10 @@ static void do_ndhc_work(void)
else
suicide("epoll_wait failed");
}
int sev_dhcp = -1;
bool sev_dhcp = false;
uint32_t dhcp_srcaddr;
uint8_t dhcp_msgtype;
int sev_arp = ARPP_NONE;
bool sev_arp = false;
int sev_nl = IFS_NONE;
int sev_rfk = RFK_NONE;
int sev_signal = SIGNAL_NONE;