Lines Matching refs:ifp
1091 struct ifnet *ifp = m->m_pkthdr.rcvif;
1092 ifnet_lock_shared(ifp);
1093 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1104 ifnet_lock_done(ifp);
1109 ifnet_lock_done(ifp);
1114 struct ifnet *ifp = m->m_pkthdr.rcvif;
1126 if (ip_mforward && ip_mforward(ip, ifp, m, 0) != 0) {
1148 IN_LOOKUP_MULTI(&ip->ip_dst, ifp, inm);
2273 struct ifnet *ifp = ifindex2ifnet[i];
2274 if (ifp != NULL) {
2275 lck_mtx_lock(&ifp->if_cached_route_lock);
2276 if (ifp->if_fwd_route.ro_rt != NULL)
2277 rtfree(ifp->if_fwd_route.ro_rt);
2278 bzero(&ifp->if_fwd_route,
2279 sizeof (ifp->if_fwd_route));
2280 lck_mtx_unlock(&ifp->if_cached_route_lock);
2295 ip_fwd_route_copyout(struct ifnet *ifp, struct route *dst)
2297 struct route *src = &ifp->if_fwd_route;
2299 lck_mtx_lock_spin(&ifp->if_cached_route_lock);
2300 lck_mtx_convert_spin(&ifp->if_cached_route_lock);
2308 lck_mtx_unlock(&ifp->if_cached_route_lock);
2312 ip_fwd_route_copyin(struct ifnet *ifp, struct route *src)
2314 struct route *dst = &ifp->if_fwd_route;
2316 lck_mtx_lock_spin(&ifp->if_cached_route_lock);
2317 lck_mtx_convert_spin(&ifp->if_cached_route_lock);
2323 if (ifp->if_fwd_cacheok)
2326 lck_mtx_unlock(&ifp->if_cached_route_lock);
2359 struct ifnet *ifp = m->m_pkthdr.rcvif;
2407 ip_fwd_route_copyout(ifp, &fwd_rt);
2665 ip_fwd_route_copyin(ifp, &fwd_rt);
2727 struct ifnet *ifp;
2736 if ((ifp = m->m_pkthdr.rcvif) != NULL &&
2737 ifp->if_index && (ifp->if_index <= if_index)) {
2738 struct ifaddr *ifa = ifnet_addrs[ifp->if_index - 1];