NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/47433: dhcpcd gets confused by two interfaces on the same LAN with IPv6 RAs
The following reply was made to PR bin/47433; it has been noted by GNATS.
From: Taylor R Campbell <campbell+netbsd%mumble.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/47433: dhcpcd gets confused by two interfaces on the same LAN
with IPv6 RAs
Date: Fri, 11 Jan 2013 20:11:19 +0000
The following patch seems to fix the problem.
Index: external/bsd/dhcpcd/dist/ipv6rs.c
===================================================================
RCS file: /cvsroot/src/external/bsd/dhcpcd/dist/ipv6rs.c,v
retrieving revision 1.1.1.9
diff -p -u -r1.1.1.9 ipv6rs.c
--- external/bsd/dhcpcd/dist/ipv6rs.c 6 Dec 2012 11:11:36 -0000 1.1.1.9
+++ external/bsd/dhcpcd/dist/ipv6rs.c 11 Jan 2013 18:59:14 -0000
@@ -462,7 +462,8 @@ ipv6rs_handledata(_unused void *arg)
return;
}
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;
}
Home |
Main Index |
Thread Index |
Old Index