]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Disable IPv6RS if a loopback, pointopoint or not a multicast interface.
authorRoy Marples <roy@marples.name>
Tue, 18 Nov 2014 11:47:45 +0000 (11:47 +0000)
committerRoy Marples <roy@marples.name>
Tue, 18 Nov 2014 11:47:45 +0000 (11:47 +0000)
dhcpcd.c

index 28dbe89f6f3d3f0b6ed2c5c0700d76c245ee0c22..e7262b6278a07ca13801bf3f0f78c541c3396c65 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -351,7 +351,8 @@ configure_interface1(struct interface *ifp)
        if (ifp->flags & IFF_NOARP ||
            ifo->options & (DHCPCD_INFORM | DHCPCD_STATIC))
                ifo->options &= ~(DHCPCD_ARP | DHCPCD_IPV4LL);
-       if (!(ifp->flags & (IFF_POINTOPOINT | IFF_LOOPBACK | IFF_MULTICAST)))
+       if (ifp->flags & (IFF_POINTOPOINT | IFF_LOOPBACK) ||
+           !(ifp->flags & IFF_MULTICAST))
                ifo->options &= ~DHCPCD_IPV6RS;
 
        if (ifo->metric != -1)