Searched refs:rt0 (Results 1 – 3 of 3) sorted by relevance
/linux-4.4.14/include/net/ |
D | ip6_fib.h | 155 static inline void rt6_update_expires(struct rt6_info *rt0, int timeout) in rt6_update_expires() argument 159 for (rt = rt0; rt && !(rt->rt6i_flags & RTF_EXPIRES); in rt6_update_expires() 161 if (rt && rt != rt0) in rt6_update_expires() 162 rt0->dst.expires = rt->dst.expires; in rt6_update_expires() 164 dst_set_expires(&rt0->dst, timeout); in rt6_update_expires() 165 rt0->rt6i_flags |= RTF_EXPIRES; in rt6_update_expires()
|
/linux-4.4.14/net/mpls/ |
D | af_mpls.c | 1397 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table() local 1412 rt0 = mpls_rt_alloc(1, lo->addr_len); in resize_platform_label_table() 1413 if (!rt0) in resize_platform_label_table() 1415 RCU_INIT_POINTER(rt0->rt_nh->nh_dev, lo); in resize_platform_label_table() 1416 rt0->rt_protocol = RTPROT_KERNEL; in resize_platform_label_table() 1417 rt0->rt_payload_type = MPT_IPV4; in resize_platform_label_table() 1418 rt0->rt_nh->nh_via_table = NEIGH_LINK_TABLE; in resize_platform_label_table() 1419 rt0->rt_nh->nh_via_alen = lo->addr_len; in resize_platform_label_table() 1420 memcpy(__mpls_nh_via(rt0, rt0->rt_nh), lo->dev_addr, in resize_platform_label_table() 1462 RCU_INIT_POINTER(labels[MPLS_LABEL_IPV4NULL], rt0); in resize_platform_label_table() [all …]
|
/linux-4.4.14/net/ipv6/ |
D | route.c | 723 struct rt6_info *match, *rt0; in rt6_select() local 727 rt0 = fn->rr_ptr; in rt6_select() 728 if (!rt0) in rt6_select() 729 fn->rr_ptr = rt0 = fn->leaf; in rt6_select() 731 match = find_rr_leaf(fn, rt0, rt0->rt6i_metric, oif, strict, in rt6_select() 735 struct rt6_info *next = rt0->dst.rt6_next; in rt6_select() 738 if (!next || next->rt6i_metric != rt0->rt6i_metric) in rt6_select() 741 if (next != rt0) in rt6_select() 745 net = dev_net(rt0->dst.dev); in rt6_select()
|