Lines Matching refs:rt

606 		struct rt6_info *rt;  in ip6_forward()  local
613 rt = dst_rt6_info(dst); in ip6_forward()
614 if (rt->rt6i_flags & RTF_GATEWAY) in ip6_forward()
615 target = &rt->rt6i_gateway; in ip6_forward()
870 struct rt6_info *rt = dst_rt6_info(skb_dst(skb)); in ip6_fragment() local
924 hroom = LL_RESERVED_SPACE(rt->dst.dev); in ip6_fragment()
972 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
984 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
992 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
1012 ip6_frag_init(skb, hlen, mtu, rt->dst.dev->needed_tailroom, in ip6_fragment()
1013 LL_RESERVED_SPACE(rt->dst.dev), prevhdr, nexthdr, frag_id, in ip6_fragment()
1067 struct rt6_info *rt; in ip6_sk_dst_check() local
1077 rt = dst_rt6_info(dst); in ip6_sk_dst_check()
1095 if (ip6_rt_check(&rt->rt6i_dst, &fl6->daddr, np->daddr_cache) || in ip6_sk_dst_check()
1097 ip6_rt_check(&rt->rt6i_src, &fl6->saddr, np->saddr_cache) || in ip6_sk_dst_check()
1113 struct rt6_info *rt; in ip6_dst_lookup_tail() local
1129 struct rt6_info *rt; in ip6_dst_lookup_tail() local
1132 rt = (*dst)->error ? NULL : dst_rt6_info(*dst); in ip6_dst_lookup_tail()
1135 from = rt ? rcu_dereference(rt->from) : NULL; in ip6_dst_lookup_tail()
1174 rt = dst_rt6_info(*dst); in ip6_dst_lookup_tail()
1176 n = __ipv6_neigh_lookup_noref(rt->dst.dev, in ip6_dst_lookup_tail()
1177 rt6_nexthop(rt, &fl6->daddr)); in ip6_dst_lookup_tail()
1324 struct rt6_info *rt, in ip6_append_data_mtu() argument
1327 if (!(rt->dst.flags & DST_XFRM_TUNNEL)) { in ip6_append_data_mtu()
1330 *mtu = orig_mtu - rt->dst.header_len; in ip6_append_data_mtu()
1346 struct rt6_info *rt) in ip6_setup_cork() argument
1355 cork->base.dst = &rt->dst; in ip6_setup_cork()
1393 if (rt->dst.flags & DST_XFRM_TUNNEL) in ip6_setup_cork()
1395 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(&rt->dst); in ip6_setup_cork()
1398 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(xfrm_dst_path(&rt->dst)); in ip6_setup_cork()
1443 struct rt6_info *rt = dst_rt6_info(cork->dst); in __ip6_append_data() local
1453 dst_exthdrlen = rt->dst.header_len - rt->rt6i_nfheader_len; in __ip6_append_data()
1460 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip6_append_data()
1462 fragheaderlen = sizeof(struct ipv6hdr) + rt->rt6i_nfheader_len + in __ip6_append_data()
1467 rt->rt6i_nfheader_len; in __ip6_append_data()
1510 rt->dst.dev->features & (NETIF_F_IPV6_CSUM | NETIF_F_HW_CSUM)) in __ip6_append_data()
1523 if ((rt->dst.dev->features & NETIF_F_SG) && in __ip6_append_data()
1535 if (rt->dst.dev->features & NETIF_F_SG && in __ip6_append_data()
1547 if (rt->dst.dev->features & NETIF_F_SG && in __ip6_append_data()
1607 fragheaderlen, skb, rt, in __ip6_append_data()
1619 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1625 alloc_extra += rt->dst.trailer_len; in __ip6_append_data()
1634 !(rt->dst.dev->features&NETIF_F_SG)) in __ip6_append_data()
1638 !(rt->dst.dev->features & NETIF_F_SG))) in __ip6_append_data()
1651 datalen += rt->dst.trailer_len; in __ip6_append_data()
1747 if (!(rt->dst.dev->features&NETIF_F_SG) && in __ip6_append_data()
1821 IP6_INC_STATS(sock_net(sk), rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS); in __ip6_append_data()
1833 struct rt6_info *rt, unsigned int flags) in ip6_append_data() argument
1846 dst_hold(&rt->dst); in ip6_append_data()
1848 ipc6, rt); in ip6_append_data()
1905 struct rt6_info *rt = dst_rt6_info(cork->base.dst); in __ip6_make_skb() local
1958 IP6_INC_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUTREQUESTS); in __ip6_make_skb()
1980 struct rt6_info *rt = dst_rt6_info(skb_dst(skb)); in ip6_send_skb() local
1989 IP6_INC_STATS(net, rt->rt6i_idev, in ip6_send_skb()
2037 struct ipcm6_cookie *ipc6, struct rt6_info *rt, in ip6_make_skb() argument
2046 dst_release(&rt->dst); in ip6_make_skb()
2056 err = ip6_setup_cork(sk, cork, &v6_cork, ipc6, rt); in ip6_make_skb()