Lines Matching refs:rt
475 struct rt6_info *rt; in ip6_forward() local
482 rt = (struct rt6_info *) dst; in ip6_forward()
483 if (rt->rt6i_flags & RTF_GATEWAY) in ip6_forward()
484 target = &rt->rt6i_gateway; in ip6_forward()
573 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_fragment() local
625 hroom = LL_RESERVED_SPACE(rt->dst.dev); in ip6_fragment()
685 dst_hold(&rt->dst); in ip6_fragment()
713 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
727 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
729 ip6_rt_put(rt); in ip6_fragment()
735 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
737 ip6_rt_put(rt); in ip6_fragment()
758 troom = rt->dst.dev->needed_tailroom; in ip6_fragment()
878 struct rt6_info *rt; in ip6_sk_dst_check() local
888 rt = (struct rt6_info *)dst; in ip6_sk_dst_check()
906 if (ip6_rt_check(&rt->rt6i_dst, &fl6->daddr, np->daddr_cache) || in ip6_sk_dst_check()
908 ip6_rt_check(&rt->rt6i_src, &fl6->saddr, np->saddr_cache) || in ip6_sk_dst_check()
925 struct rt6_info *rt; in ip6_dst_lookup_tail() local
940 struct rt6_info *rt; in ip6_dst_lookup_tail() local
945 rt = (*dst)->error ? NULL : (struct rt6_info *)*dst; in ip6_dst_lookup_tail()
946 err = ip6_route_get_saddr(net, rt, &fl6->daddr, in ip6_dst_lookup_tail()
981 rt = (struct rt6_info *) *dst; in ip6_dst_lookup_tail()
983 n = __ipv6_neigh_lookup_noref(rt->dst.dev, in ip6_dst_lookup_tail()
984 rt6_nexthop(rt, &fl6->daddr)); in ip6_dst_lookup_tail()
1181 struct rt6_info *rt, in ip6_append_data_mtu() argument
1184 if (!(rt->dst.flags & DST_XFRM_TUNNEL)) { in ip6_append_data_mtu()
1187 *mtu = orig_mtu - rt->dst.header_len; in ip6_append_data_mtu()
1204 struct rt6_info *rt, struct flowi6 *fl6) in ip6_setup_cork() argument
1246 dst_hold(&rt->dst); in ip6_setup_cork()
1247 cork->base.dst = &rt->dst; in ip6_setup_cork()
1251 if (rt->dst.flags & DST_XFRM_TUNNEL) in ip6_setup_cork()
1253 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(&rt->dst); in ip6_setup_cork()
1256 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(rt->dst.path); in ip6_setup_cork()
1264 if (dst_allfrag(rt->dst.path)) in ip6_setup_cork()
1292 struct rt6_info *rt = (struct rt6_info *)cork->dst; in __ip6_append_data() local
1300 dst_exthdrlen = rt->dst.header_len - rt->rt6i_nfheader_len; in __ip6_append_data()
1306 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip6_append_data()
1308 fragheaderlen = sizeof(struct ipv6hdr) + rt->rt6i_nfheader_len + in __ip6_append_data()
1315 (dst_allfrag(&rt->dst) ? in __ip6_append_data()
1317 rt->rt6i_nfheader_len; in __ip6_append_data()
1352 rt->dst.dev->features & NETIF_F_V6_CSUM) in __ip6_append_data()
1383 (rt->dst.dev->features & NETIF_F_UFO) && in __ip6_append_data()
1417 fragheaderlen, skb, rt, in __ip6_append_data()
1429 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1431 !(rt->dst.dev->features&NETIF_F_SG)) in __ip6_append_data()
1443 datalen += rt->dst.trailer_len; in __ip6_append_data()
1446 alloclen += rt->dst.trailer_len; in __ip6_append_data()
1534 if (!(rt->dst.dev->features&NETIF_F_SG) && in __ip6_append_data()
1586 IP6_INC_STATS(sock_net(sk), rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS); in __ip6_append_data()
1595 struct rt6_info *rt, unsigned int flags, int dontfrag) in ip6_append_data() argument
1609 tclass, opt, rt, fl6); in ip6_append_data()
1659 struct rt6_info *rt = (struct rt6_info *)cork->base.dst; in __ip6_make_skb() local
1707 skb_dst_set(skb, dst_clone(&rt->dst)); in __ip6_make_skb()
1708 IP6_UPD_PO_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len); in __ip6_make_skb()
1724 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_send_skb() local
1732 IP6_INC_STATS(net, rt->rt6i_idev, in ip6_send_skb()
1781 struct rt6_info *rt, unsigned int flags, in ip6_make_skb() argument
1800 err = ip6_setup_cork(sk, &cork, &v6_cork, hlimit, tclass, opt, rt, fl6); in ip6_make_skb()