From 8ab60c56435d10093dc711138ea091ee5c2fc3f7 Mon Sep 17 00:00:00 2001 From: ume Date: Tue, 2 Mar 2004 16:01:27 +0000 Subject: scope awareness of ff01:: is not merged, yet. So, clear embeded form of scopeid for ff01:: for now. Pointed out by: mlaier --- sys/netinet6/ip6_input.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 3485e8b..27af922 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -493,6 +493,12 @@ ip6_input(m) goto bad; } + /* XXX: ff01::%ifN awareness is not merged, yet. */ + if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_src)) + ip6->ip6_src.s6_addr16[1] = 0; + if (IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst)) + ip6->ip6_dst.s6_addr16[1] = 0; + /* * Multicast check */ -- cgit v1.1