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

@@ -55,6 +55,10 @@ version 2.64
Makefile tweak to do dependency checking on header files.
Thanks to Johan Peeters for the patch.
Check interface for outgoing unsolicited router
advertisements, rather than relying on interface address
configuration. Thanks to Gene Czarinski for the patch.
version 2.63
Do duplicate dhcp-host address check in --test mode.

View File

@@ -327,7 +327,7 @@ static DBusMessage* dbus_read_servers_ex(DBusMessage *message, int strings)
const char *str = NULL;
union mysockaddr addr, source_addr;
char interface[IF_NAMESIZE];
char *str_addr, *str_domain;
char *str_addr, *str_domain = NULL;
if (strings)
{

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);
}