Lines Matching refs:ro_rt
4538 if (ifp->if_fwd_route.ro_rt != NULL)
4539 rtfree(ifp->if_fwd_route.ro_rt);
4541 if (ifp->if_src_route.ro_rt != NULL)
4542 rtfree(ifp->if_src_route.ro_rt);
4544 if (ifp->if_src_route6.ro_rt != NULL)
4545 rtfree(ifp->if_src_route6.ro_rt);
5142 if (ifp->if_fwd_route.ro_rt != NULL)
5143 rtfree(ifp->if_fwd_route.ro_rt);
5145 if (ifp->if_src_route.ro_rt != NULL)
5146 rtfree(ifp->if_src_route.ro_rt);
5148 if (ifp->if_src_route6.ro_rt != NULL)
5149 rtfree(ifp->if_src_route6.ro_rt);
5499 rtfree(src->ro_rt);
5500 src->ro_rt = NULL;
5528 rtfree(src->ro_rt);
5529 src->ro_rt = NULL;
5545 if (src_rt.ro_rt == NULL || !(src_rt.ro_rt->rt_flags & RTF_UP) ||
5547 src_rt.ro_rt->generation_id != route_generation) {
5548 if (src_rt.ro_rt != NULL) {
5549 rtfree(src_rt.ro_rt);
5550 src_rt.ro_rt = NULL;
5558 if (src_rt.ro_rt == NULL) {
5559 src_rt.ro_rt = rtalloc1_scoped((struct sockaddr *)dst,
5562 if (src_rt.ro_rt != NULL) {
5564 struct rtentry *rte = src_rt.ro_rt;
5567 src_rt.ro_rt = rte;
5572 return (src_rt.ro_rt);
5583 if (src_rt.ro_rt == NULL || !(src_rt.ro_rt->rt_flags & RTF_UP) ||
5585 src_rt.ro_rt->generation_id != route_generation) {
5586 if (src_rt.ro_rt != NULL) {
5587 rtfree(src_rt.ro_rt);
5588 src_rt.ro_rt = NULL;
5598 if (src_rt.ro_rt == NULL) {
5599 src_rt.ro_rt = rtalloc1_scoped(
5603 if (src_rt.ro_rt != NULL) {
5605 struct rtentry *rte = src_rt.ro_rt;
5608 src_rt.ro_rt = rte;
5613 return (src_rt.ro_rt);