From: Roy Marples Date: Thu, 9 Oct 2014 20:09:51 +0000 (+0000) Subject: Fix exporting ra values with multiple interfaces X-Git-Tag: v6.5.1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d593c43aba76f59dc45c0157175aa42b580a0e2;p=thirdparty%2Fdhcpcd.git Fix exporting ra values with multiple interfaces --- diff --git a/ipv6nd.c b/ipv6nd.c index 66223439..c5ddab2f 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -1155,9 +1155,9 @@ ipv6nd_env(char **env, const char *prefix, const struct interface *ifp) i = l = 0; TAILQ_FOREACH(rap, ifp->ctx->ipv6->ra_routers, next) { - i++; if (rap->iface != ifp) continue; + i++; if (env) { snprintf(buffer, sizeof(buffer), "ra%zu_from", i);