changeset 1898:5581854834a0 draft dhcpcd-5.6.8

Quickly backport an IPv6 router expiry fix for multi-homed systems.
author Roy Marples <roy@marples.name>
date Thu, 04 Apr 2013 21:08:31 +0000
parents 79485b049892
children ac77c478e224
files ipv6ns.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ipv6ns.c	Thu Apr 04 20:59:26 2013 +0000
+++ b/ipv6ns.c	Thu Apr 04 21:08:31 2013 +0000
@@ -338,7 +338,8 @@
 	}
 
 	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;
 	}