]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux
authorRoy Marples <roy@marples.name>
Fri, 30 Mar 2012 09:42:01 +0000 (09:42 +0000)
committerRoy Marples <roy@marples.name>
Fri, 30 Mar 2012 09:42:01 +0000 (09:42 +0000)
ipv6rs.c
net.c

index 92aeebaad3c854da2e11b6bfe30e191354a38ee2..f47a1a0feed319c42eea576de359e95231b579a6 100644 (file)
--- a/ipv6rs.c
+++ b/ipv6rs.c
@@ -344,7 +344,7 @@ ipv6rs_handledata(_unused void *arg)
        }
 
        for (ifp = ifaces; ifp; ifp = ifp->next)
-               if (ifp->index == pkt.ipi6_ifindex)
+               if (ifp->index == (unsigned int)pkt.ipi6_ifindex)
                        break;
        if (ifp == NULL) {
                syslog(LOG_ERR,"received RA for unexpected interface from %s",
diff --git a/net.c b/net.c
index 701023d9477426e2724bb9c64b3bc807a55f93ba..86a95e3331c76b206dff7e5f7d94f7827b2acb46 100644 (file)
--- a/net.c
+++ b/net.c
@@ -419,7 +419,7 @@ discover_interfaces(int argc, char * const *argv)
                        memcpy(ifp->hwaddr, CLLADDR(sdl), ifp->hwlen);
 #elif AF_PACKET
                        sll = (const struct sockaddr_ll *)(void *)ifa->ifa_addr;
-                       ifp->index = sll->sll_index;
+                       ifp->index = sll->sll_ifindex;
                        ifp->family = sdl_type = sll->sll_hatype;
                        ifp->hwlen = sll->sll_halen;
                        if (ifp->hwlen != 0)