From 23ecf4b562bba68da606edc8e9cf4060752d739f Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Thu, 13 Jan 2000 05:12:48 +0000 Subject: [PATCH] removed an ours case which think a packet destined to loopback interface with IPv6 loopback addr for its dest or src addr as ours. --- sys/netinet6/ip6_input.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 42930bd0b9ae..ce74b63b05b2 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;