• Home
  • Raw
  • Download

Lines Matching refs:rt

571 		struct rt6_info *rt;  in ip6_forward()  local
578 rt = (struct rt6_info *) dst; in ip6_forward()
579 if (rt->rt6i_flags & RTF_GATEWAY) in ip6_forward()
580 target = &rt->rt6i_gateway; in ip6_forward()
832 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_fragment() local
883 hroom = LL_RESERVED_SPACE(rt->dst.dev); in ip6_fragment()
931 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
943 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
951 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
971 ip6_frag_init(skb, hlen, mtu, rt->dst.dev->needed_tailroom, in ip6_fragment()
972 LL_RESERVED_SPACE(rt->dst.dev), prevhdr, nexthdr, frag_id, in ip6_fragment()
1029 struct rt6_info *rt; in ip6_sk_dst_check() local
1039 rt = (struct rt6_info *)dst; in ip6_sk_dst_check()
1057 if (ip6_rt_check(&rt->rt6i_dst, &fl6->daddr, np->daddr_cache) || in ip6_sk_dst_check()
1059 ip6_rt_check(&rt->rt6i_src, &fl6->saddr, np->saddr_cache) || in ip6_sk_dst_check()
1076 struct rt6_info *rt; in ip6_dst_lookup_tail() local
1092 struct rt6_info *rt; in ip6_dst_lookup_tail() local
1095 rt = (*dst)->error ? NULL : (struct rt6_info *)*dst; in ip6_dst_lookup_tail()
1098 from = rt ? rcu_dereference(rt->from) : NULL; in ip6_dst_lookup_tail()
1136 rt = (struct rt6_info *) *dst; in ip6_dst_lookup_tail()
1138 n = __ipv6_neigh_lookup_noref(rt->dst.dev, in ip6_dst_lookup_tail()
1139 rt6_nexthop(rt, &fl6->daddr)); in ip6_dst_lookup_tail()
1354 struct rt6_info *rt, in ip6_append_data_mtu() argument
1357 if (!(rt->dst.flags & DST_XFRM_TUNNEL)) { in ip6_append_data_mtu()
1360 *mtu = orig_mtu - rt->dst.header_len; in ip6_append_data_mtu()
1376 struct rt6_info *rt, struct flowi6 *fl6) in ip6_setup_cork() argument
1419 dst_hold(&rt->dst); in ip6_setup_cork()
1420 cork->base.dst = &rt->dst; in ip6_setup_cork()
1424 if (rt->dst.flags & DST_XFRM_TUNNEL) in ip6_setup_cork()
1426 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(&rt->dst); in ip6_setup_cork()
1429 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(xfrm_dst_path(&rt->dst)); in ip6_setup_cork()
1440 if (dst_allfrag(xfrm_dst_path(&rt->dst))) in ip6_setup_cork()
1470 struct rt6_info *rt = (struct rt6_info *)cork->dst; in __ip6_append_data() local
1480 dst_exthdrlen = rt->dst.header_len - rt->rt6i_nfheader_len; in __ip6_append_data()
1491 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip6_append_data()
1493 fragheaderlen = sizeof(struct ipv6hdr) + rt->rt6i_nfheader_len + in __ip6_append_data()
1498 (dst_allfrag(&rt->dst) ? in __ip6_append_data()
1500 rt->rt6i_nfheader_len; in __ip6_append_data()
1542 rt->dst.dev->features & (NETIF_F_IPV6_CSUM | NETIF_F_HW_CSUM)) in __ip6_append_data()
1550 if (rt->dst.dev->features & NETIF_F_SG && in __ip6_append_data()
1601 fragheaderlen, skb, rt, in __ip6_append_data()
1613 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1619 alloc_extra += rt->dst.trailer_len; in __ip6_append_data()
1628 !(rt->dst.dev->features&NETIF_F_SG)) in __ip6_append_data()
1632 !(rt->dst.dev->features & NETIF_F_SG))) in __ip6_append_data()
1645 datalen += rt->dst.trailer_len; in __ip6_append_data()
1735 if (!(rt->dst.dev->features&NETIF_F_SG) && in __ip6_append_data()
1794 IP6_INC_STATS(sock_net(sk), rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS); in __ip6_append_data()
1804 struct rt6_info *rt, unsigned int flags) in ip6_append_data() argument
1818 ipc6, rt, fl6); in ip6_append_data()
1868 struct rt6_info *rt = (struct rt6_info *)cork->base.dst; in __ip6_make_skb() local
1918 skb_dst_set(skb, dst_clone(&rt->dst)); in __ip6_make_skb()
1919 IP6_UPD_PO_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len); in __ip6_make_skb()
1940 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_send_skb() local
1948 IP6_INC_STATS(net, rt->rt6i_idev, in ip6_send_skb()
1996 struct rt6_info *rt, unsigned int flags, in ip6_make_skb() argument
2014 err = ip6_setup_cork(sk, cork, &v6_cork, ipc6, rt, fl6); in ip6_make_skb()