Lines Matching refs:rt
465 struct rt6_info *rt; in ip6_forward() local
472 rt = (struct rt6_info *) dst; in ip6_forward()
473 if (rt->rt6i_flags & RTF_GATEWAY) in ip6_forward()
474 target = &rt->rt6i_gateway; in ip6_forward()
563 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_fragment() local
610 hroom = LL_RESERVED_SPACE(rt->dst.dev); in ip6_fragment()
672 dst_hold(&rt->dst); in ip6_fragment()
700 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
714 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
716 ip6_rt_put(rt); in ip6_fragment()
722 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
724 ip6_rt_put(rt); in ip6_fragment()
746 troom = rt->dst.dev->needed_tailroom; in ip6_fragment()
862 struct rt6_info *rt; in ip6_sk_dst_check() local
872 rt = (struct rt6_info *)dst; in ip6_sk_dst_check()
890 if (ip6_rt_check(&rt->rt6i_dst, &fl6->daddr, np->daddr_cache) || in ip6_sk_dst_check()
892 ip6_rt_check(&rt->rt6i_src, &fl6->saddr, np->saddr_cache) || in ip6_sk_dst_check()
909 struct rt6_info *rt; in ip6_dst_lookup_tail() local
924 struct rt6_info *rt; in ip6_dst_lookup_tail() local
929 rt = (*dst)->error ? NULL : (struct rt6_info *)*dst; in ip6_dst_lookup_tail()
930 err = ip6_route_get_saddr(net, rt, &fl6->daddr, in ip6_dst_lookup_tail()
965 rt = (struct rt6_info *) *dst; in ip6_dst_lookup_tail()
967 n = __ipv6_neigh_lookup_noref(rt->dst.dev, in ip6_dst_lookup_tail()
968 rt6_nexthop(rt, &fl6->daddr)); in ip6_dst_lookup_tail()
1160 struct rt6_info *rt, in ip6_append_data_mtu() argument
1163 if (!(rt->dst.flags & DST_XFRM_TUNNEL)) { in ip6_append_data_mtu()
1166 *mtu = orig_mtu - rt->dst.header_len; in ip6_append_data_mtu()
1183 struct rt6_info *rt, struct flowi6 *fl6) in ip6_setup_cork() argument
1225 dst_hold(&rt->dst); in ip6_setup_cork()
1226 cork->base.dst = &rt->dst; in ip6_setup_cork()
1230 if (rt->dst.flags & DST_XFRM_TUNNEL) in ip6_setup_cork()
1232 rt->dst.dev->mtu : dst_mtu(&rt->dst); in ip6_setup_cork()
1235 rt->dst.dev->mtu : dst_mtu(rt->dst.path); in ip6_setup_cork()
1241 if (dst_allfrag(rt->dst.path)) in ip6_setup_cork()
1269 struct rt6_info *rt = (struct rt6_info *)cork->dst; in __ip6_append_data() local
1277 dst_exthdrlen = rt->dst.header_len - rt->rt6i_nfheader_len; in __ip6_append_data()
1283 hh_len = LL_RESERVED_SPACE(rt->dst.dev); in __ip6_append_data()
1285 fragheaderlen = sizeof(struct ipv6hdr) + rt->rt6i_nfheader_len + in __ip6_append_data()
1292 (dst_allfrag(&rt->dst) ? in __ip6_append_data()
1294 rt->rt6i_nfheader_len; in __ip6_append_data()
1324 rt->dst.dev->features & NETIF_F_V6_CSUM) in __ip6_append_data()
1354 (rt->dst.dev->features & NETIF_F_UFO) && in __ip6_append_data()
1388 fragheaderlen, skb, rt, in __ip6_append_data()
1400 datalen = maxfraglen - fragheaderlen - rt->dst.trailer_len; in __ip6_append_data()
1402 !(rt->dst.dev->features&NETIF_F_SG)) in __ip6_append_data()
1414 datalen += rt->dst.trailer_len; in __ip6_append_data()
1417 alloclen += rt->dst.trailer_len; in __ip6_append_data()
1504 if (!(rt->dst.dev->features&NETIF_F_SG)) { in __ip6_append_data()
1555 IP6_INC_STATS(sock_net(sk), rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS); in __ip6_append_data()
1564 struct rt6_info *rt, unsigned int flags, int dontfrag) in ip6_append_data() argument
1578 tclass, opt, rt, fl6); in ip6_append_data()
1628 struct rt6_info *rt = (struct rt6_info *)cork->base.dst; in __ip6_make_skb() local
1676 skb_dst_set(skb, dst_clone(&rt->dst)); in __ip6_make_skb()
1677 IP6_UPD_PO_STATS(net, rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len); in __ip6_make_skb()
1693 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_send_skb() local
1701 IP6_INC_STATS(net, rt->rt6i_idev, in ip6_send_skb()
1750 struct rt6_info *rt, unsigned int flags, in ip6_make_skb() argument
1768 err = ip6_setup_cork(sk, &cork, &v6_cork, hlimit, tclass, opt, rt, fl6); in ip6_make_skb()