removed an ours case which think a packet destined to loopback interface

with IPv6 loopback addr for its dest or src addr as ours.
This commit is contained in:
shin 2000-01-13 05:12:48 +00:00
parent ed0d411602
commit 5af875fc35

View File

@ -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;