Lines Matching defs:ifp
92 extern int _ip_mforward(struct ip *ip, struct ifnet *ifp,
134 _ip_mforward(__unused struct ip *ip, __unused struct ifnet *ifp,
301 static int X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo);
606 struct ifnet *ifp;
621 ifp = viftable[vifi].v_ifp;
622 if_allmulti(ifp, 0);
696 struct ifnet *ifp;
707 ifp = ifa->ifa_ifp;
728 ifp = &multicast_decap_if[vifcp->vifc_vifi];
739 if ((ifp->if_flags & IFF_MULTICAST) == 0)
743 error = if_allmulti(ifp, 1);
760 vifp->v_ifp = ifp;
794 struct ifnet *ifp;
803 ifp = vifp->v_ifp;
804 if_allmulti(ifp, 0);
904 ip_mdq(rte->m, rte->ifp, rt, -1);
1064 * pointed to by "ifp", and the packet is to be relayed to other networks
1076 X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m,
1089 log(LOG_DEBUG, "ip_mforward: src %lx, dst %lx, ifp %p\n",
1091 (void *)ifp);
1122 return (ip_mdq(m, ifp, NULL, vifi));
1146 return (ip_mdq(m, ifp, rt, -1));
1271 rte->ifp = ifp;
1341 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt,
1375 if ((vifi >= numvifs) || (viftable[vifi].v_ifp != ifp)) {
1378 log(LOG_DEBUG, "wrong if: ifp %p vifi %d vififp %p\n",
1379 (void *)ifp, vifi, (void *)viftable[vifi].v_ifp);
1388 (ifp->if_flags & IFF_BROADCAST) &&
1585 struct ifnet *ifp = m->m_pkthdr.rcvif;
1630 ifp = vifp->v_ifp;
1637 m->m_pkthdr.rcvif = ifp;
2034 struct ifnet *ifp;
2056 ifp = m->m_pkthdr.rcvif;
2059 if (viftable[vifi].v_ifp == ifp)