Commit d89fb4ed authored by Simon Kelley's avatar Simon Kelley

Check interface for router advertisements.

parent 295a54ee
...@@ -55,6 +55,10 @@ version 2.64 ...@@ -55,6 +55,10 @@ version 2.64
Makefile tweak to do dependency checking on header files. Makefile tweak to do dependency checking on header files.
Thanks to Johan Peeters for the patch. 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 version 2.63
Do duplicate dhcp-host address check in --test mode. Do duplicate dhcp-host address check in --test mode.
......
...@@ -327,7 +327,7 @@ static DBusMessage* dbus_read_servers_ex(DBusMessage *message, int strings) ...@@ -327,7 +327,7 @@ static DBusMessage* dbus_read_servers_ex(DBusMessage *message, int strings)
const char *str = NULL; const char *str = NULL;
union mysockaddr addr, source_addr; union mysockaddr addr, source_addr;
char interface[IF_NAMESIZE]; char interface[IF_NAMESIZE];
char *str_addr, *str_domain; char *str_addr, *str_domain = NULL;
if (strings) if (strings)
{ {
......
...@@ -482,7 +482,8 @@ time_t periodic_ra(time_t now) ...@@ -482,7 +482,8 @@ time_t periodic_ra(time_t now)
ever be able to send ra's and satistfy it. */ ever be able to send ra's and satistfy it. */
if (iface_enumerate(AF_INET6, &param, iface_search)) if (iface_enumerate(AF_INET6, &param, iface_search))
context->ra_time = 0; 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); send_ra(param.iface, interface, NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment