Lines Matching refs:ifp
171 const struct interface *ifp; in make_env() local
210 for (ifp = ifaces; ifp; ifp = ifp->next) in make_env()
211 e += strlen(ifp->name) + 1; in make_env()
216 for (ifp = ifaces; ifp; ifp = ifp->next) { in make_env()
217 l = strlcpy(p, ifp->name, e); in make_env()
640 add_router_host_route(struct rt *rt, const struct interface *ifp) in add_router_host_route() argument
667 if (ifp->flags & IFF_NOARP) { in add_router_host_route()
670 ifp->name, inet_ntoa(rtp->gate)); in add_router_host_route()
675 ifp->name, inet_ntoa(rtp->gate)); in add_router_host_route()
693 const struct interface *ifp; in build_routes() local
697 for (ifp = ifaces; ifp; ifp = ifp->next) { in build_routes()
698 if (ifp->state->new == NULL) in build_routes()
700 dnr = get_routes(ifp); in build_routes()
701 dnr = massage_host_routes(dnr, ifp); in build_routes()
702 dnr = add_subnet_route(dnr, ifp); in build_routes()
703 dnr = add_router_host_route(dnr, ifp); in build_routes()
704 dnr = add_destination_route(dnr, ifp); in build_routes()
706 rt->iface = ifp; in build_routes()
707 rt->metric = ifp->metric; in build_routes()
711 rt->src.s_addr = ifp->addr.s_addr; in build_routes()
714 if (or->iface != ifp || in build_routes()
715 or->src.s_addr != ifp->addr.s_addr || in build_routes()