Home
last modified time | relevance | path

Searched refs:skb_dst (Results 1 – 25 of 108) sorted by relevance

12345

/Linux-v5.15/net/ipv4/
Dnetfilter.c27 struct net_device *dev = skb_dst(skb)->dev; in ip_route_me_harder()
61 if (skb_dst(skb)->error) in ip_route_me_harder()
62 return skb_dst(skb)->error; in ip_route_me_harder()
67 struct dst_entry *dst = skb_dst(skb); in ip_route_me_harder()
77 hh_len = skb_dst(skb)->dev->hard_header_len; in ip_route_me_harder()
Dxfrm4_output.c20 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm4_output()
34 net, sk, skb, skb->dev, skb_dst(skb)->dev, in xfrm4_output()
Dip_input.c309 return hint && !skb_dst(skb) && ip_hdr(hint)->daddr == iph->daddr && in ip_can_use_hint()
332 !skb_dst(skb) && in ip_rcv_finish_core()
361 if (unlikely(skb_dst(skb)->tclassid)) { in ip_rcv_finish_core()
363 u32 idx = skb_dst(skb)->tclassid; in ip_rcv_finish_core()
586 dst = skb_dst(skb); in ip_list_rcv_finish()
Dgre_offload.c50 need_ipsec = skb_dst(skb) && dst_xfrm(skb_dst(skb)); in gre_gso_segment()
/Linux-v5.15/net/xfrm/
Dxfrm_output.c32 struct dst_entry *dst = skb_dst(skb); in xfrm_skb_check_space()
53 struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb))); in skb_dst_pop()
276 struct dst_entry *dst = skb_dst(skb); in xfrm4_tunnel_encap_add()
292 top_iph->protocol = xfrm_af2proto(skb_dst(skb)->ops->family); in xfrm4_tunnel_encap_add()
321 struct dst_entry *dst = skb_dst(skb); in xfrm6_tunnel_encap_add()
338 top_iph->nexthdr = xfrm_af2proto(skb_dst(skb)->ops->family); in xfrm6_tunnel_encap_add()
492 struct dst_entry *dst = skb_dst(skb); in xfrm_output_one()
540 if (!skb_dst(skb)) { in xfrm_output_one()
585 struct net *net = xs_net(skb_dst(skb)->xfrm); in xfrm_output_resume()
590 err = skb_dst(skb)->ops->local_out(net, sk, skb); in xfrm_output_resume()
[all …]
/Linux-v5.15/net/ipv6/
Dxfrm6_output.c50 struct dst_entry *dst = skb_dst(skb); in __xfrm6_output()
68 mtu = dst_mtu(skb_dst(skb)); in __xfrm6_output()
82 if (toobig || dst_allfrag(skb_dst(skb))) in __xfrm6_output()
93 net, sk, skb, skb->dev, skb_dst(skb)->dev, in xfrm6_output()
Dseg6_iptunnel.c128 struct dst_entry *dst = skb_dst(skb); in seg6_do_srh_encap()
161 hdr->hop_limit = ip6_dst_hoplimit(skb_dst(skb)); in seg6_do_srh_encap()
228 struct net *net = dev_net(skb_dst(skb)->dev); in seg6_do_srh_inline()
244 struct dst_entry *dst = skb_dst(skb); in seg6_do_srh()
313 struct dst_entry *orig_dst = skb_dst(skb); in seg6_input_core()
334 dst = skb_dst(skb); in seg6_input_core()
352 skb_dst(skb)->dev, seg6_input_finish); in seg6_input_core()
359 struct net_device *dev = skb_dst(skb)->dev; in seg6_input_nf()
385 struct dst_entry *orig_dst = skb_dst(skb); in seg6_output_core()
432 NULL, skb_dst(skb)->dev, dst_output); in seg6_output_core()
[all …]
Dreassembly.c110 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue()
232 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), in ip6_frag_queue()
236 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), in ip6_frag_queue()
326 struct net *net = dev_net(skb_dst(skb)->dev); in ipv6_frag_rcv()
333 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), IPSTATS_MIB_REASMREQDS); in ipv6_frag_rcv()
350 ip6_dst_idev(skb_dst(skb)), IPSTATS_MIB_REASMOKS); in ipv6_frag_rcv()
396 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), IPSTATS_MIB_REASMFAILS); in ipv6_frag_rcv()
Dip6_input.c54 if (net->ipv4.sysctl_ip_early_demux && !skb_dst(skb) && skb->sk == NULL) { in ip6_rcv_finish_core()
92 return hint && !skb_dst(skb) && in ip6_can_use_hint()
128 dst = skb_dst(skb); in ip6_list_rcv_finish()
182 IP6CB(skb)->iif = skb_valid_dst(skb) ? ip6_dst_idev(skb_dst(skb))->dev->ifindex : dev->ifindex; in ip6_rcv_core()
363 idev = ip6_dst_idev(skb_dst(skb)); in ip6_protocol_deliver_rcu()
485 __IP6_UPD_PO_STATS(dev_net(skb_dst(skb)->dev), in ip6_mc_input()
Dexthdrs.c296 struct dst_entry *dst = skb_dst(skb); in ipv6_destopt_rcv()
436 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), in ipv6_srh_rcv()
459 if (skb_dst(skb)->error) { in ipv6_srh_rcv()
464 if (skb_dst(skb)->dev->flags & IFF_LOOPBACK) { in ipv6_srh_rcv()
570 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), in ipv6_rpl_srh_rcv()
648 if (skb_dst(skb)->error) { in ipv6_rpl_srh_rcv()
653 if (skb_dst(skb)->dev->flags & IFF_LOOPBACK) { in ipv6_rpl_srh_rcv()
787 __IP6_INC_STATS(net, ip6_dst_idev(skb_dst(skb)), in ipv6_rthdr_rcv()
814 if (!ipv6_chk_home_addr(dev_net(skb_dst(skb)->dev), addr)) { in ipv6_rthdr_rcv()
837 if (skb_dst(skb)->error) { in ipv6_rthdr_rcv()
[all …]
Dip6_output.c61 struct dst_entry *dst = skb_dst(skb); in ip6_finish_output2()
176 if (skb_dst(skb)->xfrm) { in __ip6_finish_output()
187 dst_allfrag(skb_dst(skb)) || in __ip6_finish_output()
212 struct net_device *dev = skb_dst(skb)->dev, *indev = skb->dev; in ip6_output()
213 struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb)); in ip6_output()
251 struct dst_entry *dst = skb_dst(skb); in ip6_xmit()
431 struct dst_entry *dst = skb_dst(skb); in ip6_forward_finish()
467 struct dst_entry *dst = skb_dst(skb); in ip6_forward()
542 dst = skb_dst(skb); in ip6_forward()
632 skb_dst_set(to, dst_clone(skb_dst(from))); in ip6_copy_metadata()
[all …]
Drpl_iptunnel.c191 struct dst_entry *dst = skb_dst(skb); in rpl_do_srh()
204 struct dst_entry *orig_dst = skb_dst(skb); in rpl_output()
258 struct dst_entry *orig_dst = skb_dst(skb); in rpl_input()
279 dst = skb_dst(skb); in rpl_input()
Dioam6_iptunnel.c198 ns = ioam6_namespace(dev_net(skb_dst(skb)->dev), trace->namespace_id); in ioam6_do_inline()
207 struct lwtunnel_state *lwt = skb_dst(skb)->lwtstate; in ioam6_output()
223 err = skb_cow_head(skb, LL_RESERVED_SPACE(skb_dst(skb)->dev)); in ioam6_output()
Dioam6.c651 raw32 = dev_net(skb_dst(skb)->dev)->ipv6.sysctl.ioam6_id; in __ioam6_fill_trace_data()
667 if (skb_dst(skb)->dev->flags & IFF_LOOPBACK) in __ioam6_fill_trace_data()
670 raw16 = (__force u16)__in6_dev_get(skb_dst(skb)->dev)->cnf.ioam6_id; in __ioam6_fill_trace_data()
736 raw64 = dev_net(skb_dst(skb)->dev)->ipv6.sysctl.ioam6_id_wide; in __ioam6_fill_trace_data()
752 if (skb_dst(skb)->dev->flags & IFF_LOOPBACK) in __ioam6_fill_trace_data()
755 raw32 = __in6_dev_get(skb_dst(skb)->dev)->cnf.ioam6_id_wide; in __ioam6_fill_trace_data()
Dnetfilter.c34 strict ? skb_dst(skb)->dev->ifindex : 0, in ip6_route_me_harder()
69 hh_len = skb_dst(skb)->dev->hard_header_len; in ip6_route_me_harder()
/Linux-v5.15/include/net/
Ddst_metadata.h30 struct metadata_dst *md_dst = (struct metadata_dst *) skb_dst(skb); in skb_metadata_dst()
47 dst = skb_dst(skb); in skb_tunnel_info()
58 struct dst_entry *dst = skb_dst(skb); in skb_valid_dst()
71 a = (const struct metadata_dst *) skb_dst(skb_a); in skb_metadata_dst_cmp()
72 b = (const struct metadata_dst *) skb_dst(skb_b); in skb_metadata_dst_cmp()
Ddst.h283 dst_clone(skb_dst(nskb)); in __skb_dst_copy()
313 struct dst_entry *dst = skb_dst(skb); in skb_dst_force()
375 dst = skb_dst(skb); in dst_tclassid()
427 struct dst_entry *dst = skb_dst(skb); in dst_link_failure()
450 return INDIRECT_CALL_INET(skb_dst(skb)->output, in dst_output()
460 return INDIRECT_CALL_INET(skb_dst(skb)->input, in dst_input()
540 struct dst_entry *dst = skb_dst(skb); in skb_dst_update_pmtu()
549 struct dst_entry *dst = skb_dst(skb); in skb_dst_update_pmtu_no_confirm()
Dip6_route.h216 const struct dst_entry *dst = skb_dst(skb); in skb_rt6_info()
247 struct rt6_info *rt = (struct rt6_info *) skb_dst(skb); in ipv6_unicast_destination()
274 mtu = READ_ONCE(skb_dst(skb)->dev->mtu); in ip6_skb_dst_mtu()
275 mtu -= lwtunnel_headroom(skb_dst(skb)->lwtstate, mtu); in ip6_skb_dst_mtu()
277 mtu = dst_mtu(skb_dst(skb)); in ip6_skb_dst_mtu()
/Linux-v5.15/net/core/
Dlwt_bpf.c91 struct net_device *dev = skb_dst(skb)->dev; in bpf_lwt_input_reroute()
117 struct dst_entry *dst = skb_dst(skb); in bpf_input()
140 struct dst_entry *dst = skb_dst(skb); in bpf_output()
163 int hh_len = skb_dst(skb)->dev->hard_header_len; in xmit_check_hhlen()
177 struct net_device *l3mdev = l3mdev_master_dev_rcu(skb_dst(skb)->dev); in bpf_lwt_xmit_reroute()
198 net = dev_net(skb_dst(skb)->dev); in bpf_lwt_xmit_reroute()
257 err = dst_output(dev_net(skb_dst(skb)->dev), skb->sk, skb); in bpf_lwt_xmit_reroute()
271 struct dst_entry *dst = skb_dst(skb); in bpf_xmit()
619 len + LL_RESERVED_SPACE(skb_dst(skb)->dev)); in bpf_lwt_push_ip_encap()
Dlwtunnel.c321 struct dst_entry *dst = skb_dst(skb); in lwtunnel_output()
355 struct dst_entry *dst = skb_dst(skb); in lwtunnel_xmit()
390 struct dst_entry *dst = skb_dst(skb); in lwtunnel_input()
/Linux-v5.15/net/ipv4/netfilter/
Dnf_reject_ipv4.c263 skb_dst_set_noref(nskb, skb_dst(oldskb)); in nf_send_reset()
269 ip4_dst_hoplimit(skb_dst(nskb))); in nf_send_reset()
277 if (nskb->len > dst_mtu(skb_dst(nskb))) in nf_send_reset()
/Linux-v5.15/net/bridge/
Dbr_netfilter_ipv6.c178 if (skb_dst(skb)->error) { in br_nf_pre_routing_finish_ipv6()
183 if (skb_dst(skb)->dev == dev) { in br_nf_pre_routing_finish_ipv6()
/Linux-v5.15/net/netfilter/
Dxt_realm.c25 const struct dst_entry *dst = skb_dst(skb); in realm_mt()
/Linux-v5.15/include/linux/
Dnetfilter_bridge.h21 struct dst_entry *dst = skb_dst(skb); in br_drop_fake_rtable()
/Linux-v5.15/net/ipv6/ila/
Dila_lwt.c40 struct dst_entry *orig_dst = skb_dst(skb); in ila_output()
103 struct dst_entry *dst = skb_dst(skb); in ila_input()

12345