Lines Matching refs:ifp
82 extern int _ip_mforward(struct ip *ip, struct ifnet *ifp,
124 _ip_mforward(__unused struct ip *ip, __unused struct ifnet *ifp,
291 static int X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo);
596 struct ifnet *ifp;
611 ifp = viftable[vifi].v_ifp;
612 if_allmulti(ifp, 0);
686 struct ifnet *ifp;
697 ifp = ifa->ifa_ifp;
718 ifp = &multicast_decap_if[vifcp->vifc_vifi];
729 if ((ifp->if_flags & IFF_MULTICAST) == 0)
733 error = if_allmulti(ifp, 1);
750 vifp->v_ifp = ifp;
784 struct ifnet *ifp;
793 ifp = vifp->v_ifp;
794 if_allmulti(ifp, 0);
894 ip_mdq(rte->m, rte->ifp, rt, -1);
1054 * pointed to by "ifp", and the packet is to be relayed to other networks
1066 X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m,
1079 log(LOG_DEBUG, "ip_mforward: src %lx, dst %lx, ifp %p\n",
1081 (void *)ifp);
1115 return (ip_mdq(m, ifp, NULL, vifi));
1141 return (ip_mdq(m, ifp, rt, -1));
1266 rte->ifp = ifp;
1336 ip_mdq(struct mbuf *m, struct ifnet *ifp, struct mfc *rt,
1370 if ((vifi >= numvifs) || (viftable[vifi].v_ifp != ifp)) {
1373 log(LOG_DEBUG, "wrong if: ifp %p vifi %d vififp %p\n",
1374 (void *)ifp, vifi, (void *)viftable[vifi].v_ifp);
1383 (ifp->if_flags & IFF_BROADCAST) &&
1584 struct ifnet *ifp = m->m_pkthdr.rcvif;
1629 ifp = vifp->v_ifp;
1636 m->m_pkthdr.rcvif = ifp;
2042 struct ifnet *ifp;
2064 ifp = m->m_pkthdr.rcvif;
2067 if (viftable[vifi].v_ifp == ifp)