Lines Matching refs:gate
444 if (rt->gate.s_addr == INADDR_ANY) in desc_route()
447 else if (rt->gate.s_addr == rt->dest.s_addr && in desc_route()
453 inet_ntoa(rt->gate)); in desc_route()
456 addr, inet_ntocidr(rt->net), inet_ntoa(rt->gate)); in desc_route()
495 rt->gate.s_addr == 0) in n_route()
554 rt->gate.s_addr = 0; in get_subnet_route()
573 r->gate.s_addr = 0; in add_subnet_route()
588 if (rt->gate.s_addr == 0) in get_routes()
615 if (r->gate.s_addr == iface->addr.s_addr && in massage_host_routes()
617 r->gate.s_addr = r->dest.s_addr; in massage_host_routes()
632 r->gate.s_addr = iface->dst.s_addr; in add_destination_route()
651 if (rtn->dest.s_addr == rtp->gate.s_addr) in add_router_host_route()
654 cp = (const char *)&rtp->gate.s_addr; in add_router_host_route()
670 ifp->name, inet_ntoa(rtp->gate)); in add_router_host_route()
671 rtp->gate.s_addr = 0; in add_router_host_route()
675 ifp->name, inet_ntoa(rtp->gate)); in add_router_host_route()
677 rtn->dest.s_addr = rtp->gate.s_addr; in add_router_host_route()
679 rtn->gate.s_addr = rtp->gate.s_addr; in add_router_host_route()
716 rt->gate.s_addr != or->gate.s_addr || in build_routes()