Lines Matching defs:ifp
328 struct ifnet *ifp = NULL;
581 ifp = rt->rt_ifp;
582 if (ifp) {
583 ifnet_lock_shared(ifp);
584 ifa2 = ifp->if_lladdr;
587 ifnet_lock_done(ifp);
589 rtm->rtm_index = ifp->if_index;
594 } else if ((ifp = rt->rt_ifp) != NULL) {
595 rtm->rtm_index = ifp->if_index;
829 struct ifnet *ifp = NULL;
852 * New gateway could require new ifaddr, ifp; flags may also
853 * be different; ifp may be specified by ll sockaddr when
857 (ifp = ifa->ifa_ifp) && (Ifaaddr || Gate)) {
859 ifa = ifaof_ifpforaddr(Ifaaddr ? Ifaaddr : Gate, ifp);
865 if (Ifpaddr && (ifp = if_withname(Ifpaddr)) ) {
867 ifa = ifaof_ifpforaddr(Gate, ifp);
869 ifnet_lock_shared(ifp);
870 ifa = TAILQ_FIRST(&ifp->if_addrhead);
873 ifnet_lock_done(ifp);
877 ifp = ifa->ifa_ifp;
889 ifp = ifa->ifa_ifp;
913 if (rt->rt_ifp != ifp) {
924 rt->rt_if_ref_fn(ifp, 1);
928 rt->rt_ifp = ifp;
937 rt->rt_rmx.rmx_mtu = ifp->if_mtu;
1229 struct ifnet *ifp)
1243 ifm->ifm_index = ifp->if_index;
1244 ifm->ifm_flags = (u_short)ifp->if_flags;
1245 if_data_internal_to_if_data(ifp, &ifp->if_data, &ifm->ifm_data);
1268 struct ifnet *ifp = ifa->ifa_ifp;
1286 /* Lock ifp for if_lladdr */
1287 ifnet_lock_shared(ifp);
1296 info.rti_info[RTAX_IFP] = ifp->if_lladdr->ifa_addr;
1301 ifnet_lock_done(ifp);
1305 ifnet_lock_done(ifp);
1307 ifam->ifam_index = ifp->if_index;
1326 rtm->rtm_index = ifp->if_index;
1346 struct ifnet *ifp = ifma->ifma_ifp;
1353 /* Lock ifp for if_lladdr */
1354 ifnet_lock_shared(ifp);
1358 info.rti_info[RTAX_IFP] = ifp->if_lladdr->ifa_addr; /* lladdr doesn't need lock */
1367 ifnet_lock_done(ifp);
1371 ifmam->ifmam_index = ifp->if_index;
1375 ifnet_lock_done(ifp);
1514 struct ifnet *ifp;
1527 TAILQ_FOREACH(ifp, &ifnet_head, if_link) {
1530 if (w->w_arg && w->w_arg != ifp->if_index)
1532 ifnet_lock_shared(ifp);
1538 ifa = ifp->if_lladdr;
1547 ifnet_lock_done(ifp);
1558 ifm->ifm_index = ifp->if_index;
1559 ifm->ifm_flags = (u_short)ifp->if_flags;
1560 if_data_internal_to_if_data(ifp, &ifp->if_data,
1604 ifnet_lock_done(ifp);
1643 struct ifnet *ifp;
1656 TAILQ_FOREACH(ifp, &ifnet_head, if_link) {
1659 if (w->w_arg && w->w_arg != ifp->if_index)
1661 ifnet_lock_shared(ifp);
1667 ifa = ifp->if_lladdr;
1676 ifnet_lock_done(ifp);
1688 ifm->ifm_flags = (u_short)ifp->if_flags;
1689 ifm->ifm_index = ifp->if_index;
1690 ifm->ifm_snd_len = IFCQ_LEN(&ifp->if_snd);
1691 ifm->ifm_snd_maxlen = IFCQ_MAXLEN(&ifp->if_snd);
1693 ifp->if_snd.ifcq_dropcnt.packets;
1694 ifm->ifm_timer = ifp->if_timer;
1695 if_data_internal_to_if_data64(ifp, &ifp->if_data,
1739 ifnet_lock_done(ifp);
1745 for (ifma = LIST_FIRST(&ifp->if_multiaddrs);
1762 ifa0 = ifp->if_lladdr;
1796 ifnet_lock_done(ifp);