Lines Matching refs:ifp
595 struct ifnet * ifp = NULL;
598 ifp = ifunit((char *)rootdevice);
600 if (ifp == NULL) {
602 TAILQ_FOREACH(ifp, &ifnet_head, if_link)
603 if ((ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT)) == 0)
607 return (ifp);
616 struct ifnet * ifp;
626 ifp = find_interface();
627 if (ifp == NULL) {
632 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s%d", ifp->if_name,
633 ifp->if_unit);
641 ifr.ifr_flags = ifp->if_flags | IFF_UP;
651 error = dhcp(ifp, &iaddr, 64, &netmask, &router, procp);