]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix exporting ra values with multiple interfaces
authorRoy Marples <roy@marples.name>
Thu, 9 Oct 2014 20:09:51 +0000 (20:09 +0000)
committerRoy Marples <roy@marples.name>
Thu, 9 Oct 2014 20:09:51 +0000 (20:09 +0000)
ipv6nd.c

index 662234395b75edfa7c1370da27dd47995d0f1f70..c5ddab2fe207aa879aeea002196c4d713347742a 100644 (file)
--- 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);