Skip to content

Commit

Permalink
reschedule iface even when send fails
Browse files Browse the repository at this point in the history
Not rescheduling can leave the iface as the next iface to expire
which will peg the CPU at 100% if sending continues to fail.  This
change logs the failure and reschedules like normal when the iface
failes to send an ra.

Conflicts:
	radvd.c
  • Loading branch information
reubenhwk committed Feb 27, 2014
1 parent 12d2ff5 commit 4b31b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ void timer_handler(void *data)
dlog(LOG_DEBUG, 4, "timer_handler called for %s", iface->Name);

if (send_ra_forall(iface, NULL) != 0) {
return;
dlog(LOG_DEBUG, 4, "send_ra_forall failed on interface %s", iface->Name);
}

next = rand_between(iface->MinRtrAdvInterval, iface->MaxRtrAdvInterval);
Expand Down

0 comments on commit 4b31b02

Please sign in to comment.