diff options
author | ume <ume@FreeBSD.org> | 2004-03-02 16:01:27 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-03-02 16:01:27 +0000 |
commit | 8ab60c56435d10093dc711138ea091ee5c2fc3f7 (patch) | |
tree | 52aa8dd49be4bd40e403c7b36407b5191af32dc2 /sys/netinet6 | |
parent | 286e504b8f716defb4c0d46a854bccef5639477d (diff) | |
download | FreeBSD-src-8ab60c56435d10093dc711138ea091ee5c2fc3f7.zip FreeBSD-src-8ab60c56435d10093dc711138ea091ee5c2fc3f7.tar.gz |
scope awareness of ff01:: is not merged, yet. So, clear
embeded form of scopeid for ff01:: for now.
Pointed out by: mlaier
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_input.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |