Check interface for router advertisements.

This commit is contained in:
Simon Kelley
2012-12-01 21:21:13 +00:00
parent 295a54eed3
commit d89fb4ed4f
3 changed files with 7 additions and 2 deletions

View File

@@ -482,7 +482,8 @@ time_t periodic_ra(time_t now)
ever be able to send ra's and satistfy it. */
if (iface_enumerate(AF_INET6, &param, iface_search))
context->ra_time = 0;
else if (indextoname(daemon->icmp6fd, param.iface, interface))
else if (indextoname(daemon->icmp6fd, param.iface, interface) &&
iface_check(AF_LOCAL, NULL, interface))
send_ra(param.iface, interface, NULL);
}