Lines Matching refs:ifp
592 struct ifnet * ifp = NULL;
596 ifp = ifunit((char *)rootdevice);
598 if (ifp == NULL) {
600 TAILQ_FOREACH(ifp, &ifnet_head, if_link)
601 if ((ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT)) == 0)
606 return (ifp);
615 struct ifnet * ifp;
625 ifp = find_interface();
626 if (ifp == NULL) {
631 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", ifp->if_name,
632 ifp->if_unit);
640 ifr.ifr_flags = ifp->if_flags | IFF_UP;
650 error = dhcp(ifp, &iaddr, 64, &netmask, &router, procp);
708 ifp->if_index);
716 error = host_route_delete(router, ifp->if_index);