• Home
  • Raw
  • Download

Lines Matching refs:rt

143 	struct rtable *rt = skb_rtable(skb);  in ip_build_and_send_pkt()  local
154 iph->ttl = ip_select_ttl(inet, &rt->dst); in ip_build_and_send_pkt()
159 if (skb->len <= IPV4_MIN_MTU || ip_dont_fragment(sk, &rt->dst)) { in ip_build_and_send_pkt()
175 ip_options_build(skb, &opt->opt, daddr, rt, 0); in ip_build_and_send_pkt()
189 struct rtable *rt = (struct rtable *)dst; in ip_finish_output2() local
195 if (rt->rt_type == RTN_MULTICAST) { in ip_finish_output2()
197 } else if (rt->rt_type == RTN_BROADCAST) in ip_finish_output2()
216 nexthop = (__force u32) rt_nexthop(rt, ip_hdr(skb)->daddr); in ip_finish_output2()
301 struct rtable *rt = skb_rtable(skb); in ip_mc_output() local
302 struct net_device *dev = rt->dst.dev; in ip_mc_output()
316 if (rt->rt_flags&RTCF_MULTICAST) { in ip_mc_output()
328 ((rt->rt_flags & RTCF_LOCAL) || in ip_mc_output()
347 if (rt->rt_flags&RTCF_BROADCAST) { in ip_mc_output()
398 struct rtable *rt; in ip_queue_xmit() local
408 rt = skb_rtable(skb); in ip_queue_xmit()
409 if (rt) in ip_queue_xmit()
413 rt = (struct rtable *)__sk_dst_check(sk, 0); in ip_queue_xmit()
414 if (!rt) { in ip_queue_xmit()
426 rt = ip_route_output_ports(net, fl4, sk, in ip_queue_xmit()
433 if (IS_ERR(rt)) in ip_queue_xmit()
435 sk_setup_caps(sk, &rt->dst); in ip_queue_xmit()
437 skb_dst_set_noref(skb, &rt->dst); in ip_queue_xmit()
440 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in ip_queue_xmit()
448 if (ip_dont_fragment(sk, &rt->dst) && !skb->ignore_df) in ip_queue_xmit()
452 iph->ttl = ip_select_ttl(inet, &rt->dst); in ip_queue_xmit()
460 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in ip_queue_xmit()
547 struct rtable *rt = skb_rtable(skb); in ip_do_fragment() local
550 dev = rt->dst.dev; in ip_do_fragment()
686 ll_rs = LL_RESERVED_SPACE(rt->dst.dev); in ip_do_fragment()
902 struct rtable *rt = (struct rtable *)cork->dst; in __ip_append_data() local
907 exthdrlen = !skb ? rt->dst.header_len : 0; in __ip_append_data()
913 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip_append_data()
931 rt->dst.dev->features & NETIF_F_V4_CSUM && in __ip_append_data()
941 (rt->dst.dev->features & NETIF_F_UFO) && !rt->dst.header_len && in __ip_append_data()
990 !(rt->dst.dev->features&NETIF_F_SG)) in __ip_append_data()
1003 alloclen += rt->dst.trailer_len; in __ip_append_data()
1077 if (!(rt->dst.dev->features&NETIF_F_SG) && in __ip_append_data()
1137 struct rtable *rt; in ip_setup_cork() local
1154 rt = *rtp; in ip_setup_cork()
1155 if (unlikely(!rt)) in ip_setup_cork()
1159 dst_mtu(&rt->dst) : READ_ONCE(rt->dst.dev->mtu); in ip_setup_cork()
1164 cork->dst = &rt->dst; in ip_setup_cork()
1219 struct rtable *rt; in ip_append_page() local
1238 rt = (struct rtable *)cork->dst; in ip_append_page()
1242 if (!(rt->dst.dev->features&NETIF_F_SG)) in ip_append_page()
1245 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in ip_append_page()
1265 (rt->dst.dev->features & NETIF_F_UFO)) { in ip_append_page()
1381 struct rtable *rt = (struct rtable *)cork->dst; in __ip_make_skb() local
1416 (skb->len <= dst_mtu(&rt->dst) && in __ip_make_skb()
1417 ip_dont_fragment(sk, &rt->dst))) in __ip_make_skb()
1425 else if (rt->rt_type == RTN_MULTICAST) in __ip_make_skb()
1428 ttl = ip_select_ttl(inet, &rt->dst); in __ip_make_skb()
1442 ip_options_build(skb, opt, cork->addr, rt, 0); in __ip_make_skb()
1452 skb_dst_set(skb, &rt->dst); in __ip_make_skb()
1571 struct rtable *rt = skb_rtable(skb); in ip_send_unicast_reply() local
1606 rt = ip_route_output_key(net, &fl4); in ip_send_unicast_reply()
1607 if (IS_ERR(rt)) in ip_send_unicast_reply()
1617 len, 0, &ipc, &rt, MSG_DONTWAIT); in ip_send_unicast_reply()
1633 ip_rt_put(rt); in ip_send_unicast_reply()