]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix prior patch
authorRoy Marples <roy@marples.name>
Mon, 1 Jul 2013 19:34:54 +0000 (19:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 1 Jul 2013 19:34:54 +0000 (19:34 +0000)
dhcpcd.c

index 6b15de861dc3038e0e6e9979f75151ff088c8b01..d68dc4a8055aea998fc7258839b217aa55713675 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -314,9 +314,9 @@ configure_interface1(struct interface *ifp)
 
        /* We want to disable kernel interface RA as early as possible. */
        if (ifo->options & DHCPCD_IPV6RS) {
-               ra_global = check_ipv6(NULL, options & DHCPCD_IPV6RA_OWN);
+               ra_global = check_ipv6(NULL, options & DHCPCD_IPV6RA_OWN ? 1:0);
                ra_iface = check_ipv6(ifp->name,
-                   ifp->options->options & DHCPCD_IPV6RA_OWN);
+                   ifp->options->options & DHCPCD_IPV6RA_OWN ? 1 : 0);
                if (ra_global == -1 || ra_iface == -1)
                        ifo->options &= ~DHCPCD_IPV6RS;
                else if (ra_iface == 0)