Searched refs:rt2 (Results 1 – 7 of 7) sorted by relevance
| /net/ipv6/ |
| A D | mip6.c | 291 struct rt2_hdr *rt2 = (struct rt2_hdr *)skb->data; in mip6_rthdr_input() local 292 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input() 309 struct rt2_hdr *rt2; in mip6_rthdr_output() local 318 rt2 = (struct rt2_hdr *)skb_transport_header(skb); in mip6_rthdr_output() 319 rt2->rt_hdr.nexthdr = nexthdr; in mip6_rthdr_output() 320 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output() 321 rt2->rt_hdr.type = IPV6_SRCRT_TYPE_2; in mip6_rthdr_output() 322 rt2->rt_hdr.segments_left = 1; in mip6_rthdr_output() 323 memset(&rt2->reserved, 0, sizeof(rt2->reserved)); in mip6_rthdr_output() 325 WARN_ON(rt2->rt_hdr.hdrlen != 2); in mip6_rthdr_output() [all …]
|
| /net/ipv4/ |
| A D | icmp.c | 488 struct rtable *rt, *rt2; in icmp_route_lookup() local 511 rt2 = rt; in icmp_route_lookup() 517 if (rt != rt2) in icmp_route_lookup() 534 if (IS_ERR(rt2)) in icmp_route_lookup() 535 err = PTR_ERR(rt2); in icmp_route_lookup() 542 if (IS_ERR(rt2)) { in icmp_route_lookup() 543 err = PTR_ERR(rt2); in icmp_route_lookup() 552 dst_release(&rt2->dst); in icmp_route_lookup() 562 rt2 = dst_rtable(dst2); in icmp_route_lookup() 566 rt = rt2; in icmp_route_lookup() [all …]
|
| A D | ip_options.c | 593 struct rtable *rt2; in ip_options_rcv_srr() local 622 rt2 = skb_rtable(skb); in ip_options_rcv_srr() 623 if (err || (rt2->rt_type != RTN_UNICAST && rt2->rt_type != RTN_LOCAL)) { in ip_options_rcv_srr() 629 if (rt2->rt_type != RTN_LOCAL) in ip_options_rcv_srr()
|
| /net/mctp/test/ |
| A D | route-test.c | 1186 struct mctp_test_route *rt1, *rt2; in mctp_test_route_gw_lookup() local 1197 rt2 = mctp_test_create_route_gw(&init_net, dev->mdev->net, 10, 9, 0); in mctp_test_route_gw_lookup() 1198 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, rt2); in mctp_test_route_gw_lookup() 1209 mctp_test_route_destroy(test, rt2); in mctp_test_route_gw_lookup() 1216 struct mctp_test_route *rt1, *rt2; in mctp_test_route_gw_loop() local 1228 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, rt2); in mctp_test_route_gw_loop() 1234 mctp_test_route_destroy(test, rt2); in mctp_test_route_gw_loop() 1273 struct mctp_test_route *rt1, *rt2, *rt3; in mctp_test_route_gw_mtu() local 1290 rt2 = mctp_test_create_route_gw(&init_net, netid, 10, 9, mtus->gw); in mctp_test_route_gw_mtu() 1291 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, rt2); in mctp_test_route_gw_mtu() [all …]
|
| /net/mpls/ |
| A D | af_mpls.c | 2510 struct mpls_route *rt0 = NULL, *rt2 = NULL; in resize_platform_label_table() local 2536 rt2 = mpls_rt_alloc(1, lo->addr_len, 0); in resize_platform_label_table() 2537 if (IS_ERR(rt2)) in resize_platform_label_table() 2539 rt2->rt_nh->nh_dev = lo; in resize_platform_label_table() 2540 rt2->rt_protocol = RTPROT_KERNEL; in resize_platform_label_table() 2541 rt2->rt_payload_type = MPT_IPV6; in resize_platform_label_table() 2543 rt2->rt_nh->nh_via_table = NEIGH_LINK_TABLE; in resize_platform_label_table() 2544 rt2->rt_nh->nh_via_alen = lo->addr_len; in resize_platform_label_table() 2545 memcpy(__mpls_nh_via(rt2, rt2->rt_nh), lo->dev_addr, in resize_platform_label_table() 2569 rt2 = NULL; in resize_platform_label_table() [all …]
|
| /net/netfilter/ |
| A D | nf_conntrack_h323_main.c | 683 struct rtable *rt1, *rt2; in callforward_do_filter() local 692 if (!nf_ip_route(net, (struct dst_entry **)&rt2, in callforward_do_filter() 695 rt_nexthop(rt2, fl2.daddr) && in callforward_do_filter() 696 rt1->dst.dev == rt2->dst.dev) in callforward_do_filter() 698 dst_release(&rt2->dst); in callforward_do_filter() 706 struct rt6_info *rt1, *rt2; in callforward_do_filter() local 716 if (!nf_ip6_route(net, (struct dst_entry **)&rt2, in callforward_do_filter() 719 rt6_nexthop(rt2, &fl2.daddr)) && in callforward_do_filter() 720 rt1->dst.dev == rt2->dst.dev) in callforward_do_filter() 722 dst_release(&rt2->dst); in callforward_do_filter()
|
| /net/mctp/ |
| A D | route.c | 868 struct mctp_route *rt2) in mctp_rt_compare_exact() argument 871 return mctp_route_netid(rt1) == mctp_route_netid(rt2) && in mctp_rt_compare_exact() 872 rt1->min == rt2->min && in mctp_rt_compare_exact() 873 rt1->max == rt2->max; in mctp_rt_compare_exact()
|
Completed in 35 milliseconds