From: Roy Marples Date: Fri, 30 Mar 2012 09:42:01 +0000 (+0000) Subject: Fix compile on Linux X-Git-Tag: v5.6.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08933a85d040eebb756358ac97076fd4af63b3a;p=thirdparty%2Fdhcpcd.git Fix compile on Linux --- diff --git a/ipv6rs.c b/ipv6rs.c index 92aeebaa..f47a1a0f 100644 --- 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 701023d9..86a95e33 100644 --- 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)