Lines Matching defs:nhrt
499 struct rtentry *prt, *nhrt;
506 nhrt = rt_match(gate, NULL, RT_RESOLVE, rdomain);
507 if (nhrt == NULL)
511 if (nhrt->rt_ifidx != rt->rt_ifidx) {
514 if (!ISSET(nhrt->rt_flags, RTF_LLINFO) ||
515 !ISSET(nhrt->rt_flags, RTF_CLONED)) {
516 rtfree(nhrt);
526 prt = rtable_lookup(rdomain, rt_key(nhrt->rt_parent),
527 rt_plen2mask(nhrt->rt_parent, &sa_mask), NULL, RTP_ANY);
528 rtfree(nhrt);
544 nhrt = prt;
551 if (ISSET(nhrt->rt_flags, RTF_CLONING|RTF_GATEWAY)) {
552 rtfree(nhrt);
564 nhmtu = atomic_load_int(&nhrt->rt_mtu);
575 nhrt->rt_flags |= RTF_CACHED;
576 nhrt->rt_cachecnt++;
579 rt_putgwroute(rt, nhrt);
588 rt_putgwroute(struct rtentry *rt, struct rtentry *nhrt)
599 rt->rt_gwroute = nhrt;