Lines Matching refs:rtn
642 struct rt *rtp, *rtl, *rtn; in add_router_host_route() local
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()
655 cp2 = (const char *)&rtn->dest.s_addr; in add_router_host_route()
656 cp3 = (const char *)&rtn->net.s_addr; in add_router_host_route()
657 cplim = cp3 + sizeof(rtn->net.s_addr); in add_router_host_route()
665 if (rtn != rtp) in add_router_host_route()
676 rtn = xmalloc(sizeof(*rtn)); in add_router_host_route()
677 rtn->dest.s_addr = rtp->gate.s_addr; in add_router_host_route()
678 rtn->net.s_addr = INADDR_BROADCAST; 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()
682 rt = rtn; in add_router_host_route()
684 rtl->next = rtn; in add_router_host_route()
692 struct rt *nrs = NULL, *dnr, *or, *rt, *rtn, *rtl, *lrt = NULL; in build_routes() local
705 for (rt = dnr; rt && (rtn = rt->next, 1); lrt = rt, rt = rtn) { in build_routes()
732 dnr = rtn; in build_routes()
734 lrt->next = rtn; in build_routes()