Lines Matching refs:rtp
642 struct rt *rtp, *rtl, *rtn; in add_router_host_route() local
645 for (rtp = rt, rtl = NULL; rtp; rtl = rtp, rtp = rtp->next) { in add_router_host_route()
646 if (rtp->dest.s_addr != INADDR_ANY) in add_router_host_route()
649 for (rtn = rt; rtn != rtp; rtn = rtn->next) { in add_router_host_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()
665 if (rtn != rtp) 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()
680 rtn->next = rtp; in add_router_host_route()