Lines Matching defs:nrt
1230 struct rt6_info *nrt;
1236 nrt = ip6_dst_alloc(dev_net(dev), dev, flags);
1237 if (!nrt) {
1242 ip6_rt_copy_init(nrt, res);
1243 return nrt;
1246 nrt = dev_net(dev)->ipv6.ip6_null_entry;
1247 dst_hold(&nrt->dst);
1248 return nrt;
1698 static int rt6_insert_exception(struct rt6_info *nrt,
1701 struct net *net = dev_net(nrt->dst.dev);
1735 src_key = &nrt->rt6i_src.addr;
1741 if (dst_metric_raw(&nrt->dst, RTAX_MTU) >= fib6_mtu(res)) {
1746 rt6_ex = __rt6_find_exception_spinlock(&bucket, &nrt->rt6i_dst.addr,
1756 rt6_ex->rt6i = nrt;
4208 struct rt6_info *rt, *nrt = NULL;
4321 nrt = ip6_rt_cache_alloc(&res, &msg->dest, NULL);
4322 if (!nrt)
4325 nrt->rt6i_flags = RTF_GATEWAY|RTF_UP|RTF_DYNAMIC|RTF_CACHE;
4327 nrt->rt6i_flags &= ~RTF_GATEWAY;
4329 nrt->rt6i_gateway = *(struct in6_addr *)neigh->primary_key;
4332 if (rt6_insert_exception(nrt, &res)) {
4333 dst_release_immediate(&nrt->dst);
4338 netevent.new = &nrt->dst;