Lines Matching refs:nrt
1179 struct rt6_info *nrt;
1185 nrt = ip6_dst_alloc(dev_net(dev), dev, flags);
1186 if (!nrt) {
1191 ip6_rt_copy_init(nrt, res);
1192 return nrt;
1195 nrt = dev_net(dev)->ipv6.ip6_null_entry;
1196 dst_hold(&nrt->dst);
1197 return nrt;
1653 static int rt6_insert_exception(struct rt6_info *nrt,
1656 struct net *net = dev_net(nrt->dst.dev);
1690 src_key = &nrt->rt6i_src.addr;
1696 if (dst_metric_raw(&nrt->dst, RTAX_MTU) >= fib6_mtu(res)) {
1701 rt6_ex = __rt6_find_exception_spinlock(&bucket, &nrt->rt6i_dst.addr,
1711 rt6_ex->rt6i = nrt;
4025 struct rt6_info *rt, *nrt = NULL;
4137 nrt = ip6_rt_cache_alloc(&res, &msg->dest, NULL);
4138 if (!nrt)
4141 nrt->rt6i_flags = RTF_GATEWAY|RTF_UP|RTF_DYNAMIC|RTF_CACHE;
4143 nrt->rt6i_flags &= ~RTF_GATEWAY;
4145 nrt->rt6i_gateway = *(struct in6_addr *)neigh->primary_key;
4148 if (rt6_insert_exception(nrt, &res)) {
4149 dst_release_immediate(&nrt->dst);
4154 netevent.new = &nrt->dst;