Commit 8767ceec authored by Simon Kelley's avatar Simon Kelley

Make libvirt-style access control work when only doing RA.

parent 18c63eff
...@@ -407,7 +407,7 @@ static int join_multicast_worker(struct in6_addr *local, int prefix, ...@@ -407,7 +407,7 @@ static int join_multicast_worker(struct in6_addr *local, int prefix,
return 1; return 1;
/* weird libvirt-inspired access control */ /* weird libvirt-inspired access control */
for (context = daemon->dhcp6; context; context = context->next) for (context = daemon->ra_contexts; context; context = context->next)
if (!context->interface || strcmp(context->interface, ifrn_name) == 0) if (!context->interface || strcmp(context->interface, ifrn_name) == 0)
break; break;
......
...@@ -158,7 +158,7 @@ void icmp6_packet(void) ...@@ -158,7 +158,7 @@ void icmp6_packet(void)
return; return;
/* weird libvirt-inspired access control */ /* weird libvirt-inspired access control */
for (context = daemon->dhcp6; context; context = context->next) for (context = daemon->ra_contexts; context; context = context->next)
if (!context->interface || strcmp(context->interface, interface) == 0) if (!context->interface || strcmp(context->interface, interface) == 0)
break; break;
......
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