use native names for if_link, ifa_link, if_addrhead.
Change for (...) to TAILQ_FOREACH(...) Ok'ed by: sam
This commit is contained in:
parent
a59b7fd5a4
commit
92803b6696
@ -309,10 +309,8 @@ _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp)
|
||||
!(m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK)) &&
|
||||
ipip_allow != 2) {
|
||||
IFNET_RLOCK();
|
||||
for (ifp = ifnet.tqh_first; ifp != 0;
|
||||
ifp = ifp->if_list.tqe_next) {
|
||||
for (ifa = ifp->if_addrlist.tqh_first; ifa != 0;
|
||||
ifa = ifa->ifa_list.tqe_next) {
|
||||
TAILQ_FOREACH(ifp, &ifnet, if_link) {
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
|
||||
#ifdef INET
|
||||
if (ipo) {
|
||||
if (ifa->ifa_addr->sa_family !=
|
||||
|
Loading…
x
Reference in New Issue
Block a user