Forgot --dhcp-except check in previous commit.

This commit is contained in:
Simon Kelley
2012-12-02 12:17:35 +00:00
parent d89fb4ed4f
commit 421594f83d

View File

@@ -484,9 +484,15 @@ time_t periodic_ra(time_t now)
context->ra_time = 0;
else if (indextoname(daemon->icmp6fd, param.iface, interface) &&
iface_check(AF_LOCAL, NULL, interface))
send_ra(param.iface, interface, NULL);
{
struct iname *tmp;
for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next)
if (tmp->name && (strcmp(tmp->name, interface) == 0))
break;
if (!tmp)
send_ra(param.iface, interface, NULL);
}
}
return next_event;
}