From: Roy Marples Date: Thu, 17 Dec 2015 09:08:09 +0000 (+0000) Subject: ND6 and DHCPv6 should only work on active interfaces. X-Git-Tag: v6.10.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2522249f2c363428aa93e36977be00839e778b;p=thirdparty%2Fdhcpcd.git ND6 and DHCPv6 should only work on active interfaces. --- diff --git a/dhcp6.c b/dhcp6.c index eef7e4b4..633925d7 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -2692,7 +2692,9 @@ dhcp6_handledata(void *arg) } TAILQ_FOREACH(ifp, dctx->ifaces, next) { - if (ifp->index == (unsigned int)pkt.ipi6_ifindex) + if (ifp->active && + ifp->index == (unsigned int)pkt.ipi6_ifindex && + ifp->options->options & DHCPCD_DHCP6) break; } if (ifp == NULL) { diff --git a/ipv6nd.c b/ipv6nd.c index 8ff487c8..3282267b 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -1614,7 +1614,8 @@ ipv6nd_handledata(void *arg) } TAILQ_FOREACH(ifp, dctx->ifaces, next) { - if (ifp->index == (unsigned int)pkt.ipi6_ifindex) { + if (ifp->active && + ifp->index == (unsigned int)pkt.ipi6_ifindex) { if (!(ifp->options->options & DHCPCD_IPV6)) return; break;