]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix incorrectly expiring routers on multi-homed systems.
authorRoy Marples <roy@marples.name>
Tue, 2 Apr 2013 06:50:33 +0000 (06:50 +0000)
committerRoy Marples <roy@marples.name>
Tue, 2 Apr 2013 06:50:33 +0000 (06:50 +0000)
ipv6ns.c

index a0021640d10ff2570dbfaedfd9e3fb7fc7379ccf..4fdefd1dd6e72977890b67842c2d1b110ab3b263 100644 (file)
--- a/ipv6ns.c
+++ b/ipv6ns.c
@@ -341,7 +341,8 @@ ipv6ns_handledata(_unused void *arg)
        }
 
        TAILQ_FOREACH(rap, &ipv6_routers, next) {
-               if (memcmp(rap->from.s6_addr, from.sin6_addr.s6_addr,
+               if (rap->iface == ifp &&
+                   memcmp(rap->from.s6_addr, from.sin6_addr.s6_addr,
                    sizeof(rap->from.s6_addr)) == 0)
                        break;
        }