Home
last modified time | relevance | path

Searched refs:rt0 (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/include/net/
Dip6_fib.h179 static inline void rt6_update_expires(struct rt6_info *rt0, int timeout) in rt6_update_expires() argument
183 for (rt = rt0; rt && !(rt->rt6i_flags & RTF_EXPIRES); in rt6_update_expires()
185 if (rt && rt != rt0) in rt6_update_expires()
186 rt0->dst.expires = rt->dst.expires; in rt6_update_expires()
188 dst_set_expires(&rt0->dst, timeout); in rt6_update_expires()
189 rt0->rt6i_flags |= RTF_EXPIRES; in rt6_update_expires()
/linux-4.1.27/net/mpls/
Daf_mpls.c936 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table() local
951 rt0 = mpls_rt_alloc(lo->addr_len); in resize_platform_label_table()
952 if (!rt0) in resize_platform_label_table()
954 RCU_INIT_POINTER(rt0->rt_dev, lo); in resize_platform_label_table()
955 rt0->rt_protocol = RTPROT_KERNEL; in resize_platform_label_table()
956 rt0->rt_via_table = NEIGH_LINK_TABLE; in resize_platform_label_table()
957 memcpy(rt0->rt_via, lo->dev_addr, lo->addr_len); in resize_platform_label_table()
995 RCU_INIT_POINTER(labels[MPLS_LABEL_IPV4NULL], rt0); in resize_platform_label_table()
996 rt0 = NULL; in resize_platform_label_table()
1006 mpls_rt_free(rt0); in resize_platform_label_table()
[all …]
/linux-4.1.27/net/ipv6/
Droute.c671 struct rt6_info *match, *rt0; in rt6_select() local
675 rt0 = fn->rr_ptr; in rt6_select()
676 if (!rt0) in rt6_select()
677 fn->rr_ptr = rt0 = fn->leaf; in rt6_select()
679 match = find_rr_leaf(fn, rt0, rt0->rt6i_metric, oif, strict, in rt6_select()
683 struct rt6_info *next = rt0->dst.rt6_next; in rt6_select()
686 if (!next || next->rt6i_metric != rt0->rt6i_metric) in rt6_select()
689 if (next != rt0) in rt6_select()
693 net = dev_net(rt0->dst.dev); in rt6_select()