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:
Yoshinobu Inoue 2000-01-13 05:12:48 +00:00
parent fa310a7e3b
commit 23ecf4b562
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55873

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;