]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux
authorRoy Marples <roy@marples.name>
Tue, 4 Jun 2013 13:41:34 +0000 (13:41 +0000)
committerRoy Marples <roy@marples.name>
Tue, 4 Jun 2013 13:41:34 +0000 (13:41 +0000)
if-linux.c

index e0b6587aa94c50a7421464b66da91759da9fd674..0277f07526eb1df993535b849ca804866b0f2d87 100644 (file)
@@ -665,7 +665,7 @@ if_address6(const struct ipv6_addr *ap, int action)
        nlm->ifa.ifa_prefixlen = ap->prefix_len;
        /* This creates the aliased interface */
        add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LABEL,
-           ifp->name, strlen(ifp->name) + 1);
+           ap->iface->name, strlen(ap->iface->name) + 1);
        add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LOCAL,
            &ap->addr.s6_addr, sizeof(ap->addr.s6_addr));