Lines Matching refs:nrt
1182 struct rt6_info *nrt;
1188 nrt = ip6_dst_alloc(dev_net(dev), dev, flags);
1189 if (!nrt) {
1194 ip6_rt_copy_init(nrt, res);
1195 return nrt;
1198 nrt = dev_net(dev)->ipv6.ip6_null_entry;
1199 dst_hold(&nrt->dst);
1200 return nrt;
1652 static int rt6_insert_exception(struct rt6_info *nrt,
1655 struct net *net = dev_net(nrt->dst.dev);
1689 src_key = &nrt->rt6i_src.addr;
1695 if (dst_metric_raw(&nrt->dst, RTAX_MTU) >= fib6_mtu(res)) {
1700 rt6_ex = __rt6_find_exception_spinlock(&bucket, &nrt->rt6i_dst.addr,
1710 rt6_ex->rt6i = nrt;
4109 struct rt6_info *rt, *nrt = NULL;
4221 nrt = ip6_rt_cache_alloc(&res, &msg->dest, NULL);
4222 if (!nrt)
4225 nrt->rt6i_flags = RTF_GATEWAY|RTF_UP|RTF_DYNAMIC|RTF_CACHE;
4227 nrt->rt6i_flags &= ~RTF_GATEWAY;
4229 nrt->rt6i_gateway = *(struct in6_addr *)neigh->primary_key;
4232 if (rt6_insert_exception(nrt, &res)) {
4233 dst_release_immediate(&nrt->dst);
4238 netevent.new = &nrt->dst;