summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_input.c
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-01-13 05:12:48 +0000
committershin <shin@FreeBSD.org>2000-01-13 05:12:48 +0000
commit5af875fc35feef90eef7f292f4ab6c7b8966a1e1 (patch)
tree60ac5be69e5ba0cf74417784b2d34f499ee66e35 /sys/netinet6/ip6_input.c
parented0d41160226d78565170e18ebe3d2a0e63fd44e (diff)
downloadFreeBSD-src-5af875fc35feef90eef7f292f4ab6c7b8966a1e1.zip
FreeBSD-src-5af875fc35feef90eef7f292f4ab6c7b8966a1e1.tar.gz
removed an ours case which think a packet destined to loopback interface
with IPv6 loopback addr for its dest or src addr as ours.
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r--sys/netinet6/ip6_input.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 42930bd..ce74b63 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -339,11 +339,7 @@ ip6_input(m)
}
if (IN6_IS_ADDR_LOOPBACK(&ip6->ip6_src) ||
IN6_IS_ADDR_LOOPBACK(&ip6->ip6_dst)) {
- if (m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) {
- ours = 1;
- deliverifp = m->m_pkthdr.rcvif;
- goto hbhcheck;
- } else {
+ if ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) {
ip6stat.ip6s_badscope++;
in6_ifstat_inc(m->m_pkthdr.rcvif, ifs6_in_addrerr);
goto bad;
OpenPOWER on IntegriCloud