/linux-6.1.9/net/ipv4/ |
D | ip_forward.c | 52 if (unlikely(IPCB(skb)->frag_max_size > mtu)) in ip_exceeds_mtu() 67 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_finish() 91 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward() 110 if (IPCB(skb)->opt.router_alert && ip_call_ra_chain(skb)) in ip_forward() 134 IPCB(skb)->flags |= IPSKB_FORWARDED; in ip_forward() 156 if (IPCB(skb)->flags & IPSKB_DOREDIRECT && !opt->srr && in ip_forward()
|
D | xfrm4_output.c | 23 IPCB(skb)->flags |= IPSKB_REROUTED; in __xfrm4_output() 36 !(IPCB(skb)->flags & IPSKB_REROUTED)); in xfrm4_output()
|
D | ip_output.c | 266 BUILD_BUG_ON(sizeof(*IPCB(skb)) > SKB_GSO_CB_OFFSET); in ip_finish_output_gso() 295 IPCB(skb)->flags |= IPSKB_REROUTED; in __ip_finish_output() 303 if (skb->len > mtu || IPCB(skb)->frag_max_size) in __ip_finish_output() 389 !(IPCB(skb)->flags & IPSKB_FORWARDED)) in ip_mc_output() 418 !(IPCB(skb)->flags & IPSKB_REROUTED)); in ip_mc_output() 433 !(IPCB(skb)->flags & IPSKB_REROUTED)); in ip_output() 584 (IPCB(skb)->frag_max_size && in ip_fragment() 585 IPCB(skb)->frag_max_size > mtu))) { in ip_fragment() 664 IPCB(to)->flags = IPCB(from)->flags; in ip_frag_ipcb() 784 if (IPCB(skb)->frag_max_size && IPCB(skb)->frag_max_size < mtu) in ip_do_fragment() [all …]
|
D | ip_options.c | 49 memcpy(&(IPCB(skb)->opt), opt, sizeof(struct ip_options)); in ip_options_build() 51 opt = &(IPCB(skb)->opt); in ip_options_build() 198 struct ip_options *opt = &(IPCB(skb)->opt); in ip_options_fragment() 540 struct ip_options *opt = &(IPCB(skb)->opt); in ip_forward_options() 587 struct ip_options *opt = &(IPCB(skb)->opt); in ip_options_rcv_srr()
|
D | ip_input.c | 278 opt = &(IPCB(skb)->opt); in ip_rcv_options() 373 IPCB(skb)->flags |= IPSKB_NOPOLICY; in ip_rcv_finish_core() 535 memset(IPCB(skb), 0, sizeof(struct inet_skb_parm)); in ip_rcv_core() 536 IPCB(skb)->iif = skb->skb_iif; in ip_rcv_core()
|
D | udp_tunnel_core.c | 168 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in udp_tunnel_xmit_skb()
|
D | ip_fragment.c | 286 if (!(IPCB(skb)->flags & IPSKB_FRAG_COMPLETE) && in ip_frag_queue() 435 IPCB(skb)->frag_max_size = max(qp->max_df_size, qp->q.max_size); in ip_frag_reasm() 450 IPCB(skb)->flags |= IPSKB_FRAG_PMTU; in ip_frag_reasm() 537 memset(IPCB(skb), 0, sizeof(struct inet_skb_parm)); in ip_check_defrag()
|
D | netfilter.c | 64 if (!(IPCB(skb)->flags & IPSKB_XFRM_TRANSFORMED) && in ip_route_me_harder()
|
D | ip_sockglue.c | 78 if (IPCB(skb)->opt.optlen == 0) in ip_cmsg_recv_opts() 81 put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, in ip_cmsg_recv_opts() 92 if (IPCB(skb)->opt.optlen == 0) in ip_cmsg_recv_retopts() 108 if (IPCB(skb)->frag_max_size == 0) in ip_cmsg_recv_fragsize() 111 val = IPCB(skb)->frag_max_size; in ip_cmsg_recv_fragsize() 1409 bool l3slave = ipv4_l3mdev_skb(IPCB(skb)->flags); in ipv4_pktinfo_prepare()
|
D | ip_tunnel.c | 562 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip_md_tunnel_xmit() 658 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip_tunnel_xmit()
|
D | ip_vti.c | 291 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in vti_tunnel_xmit()
|
D | ipmr.c | 1782 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip_encap() 1789 struct ip_options *opt = &(IPCB(skb)->opt); in ipmr_forward_finish() 1905 IPCB(skb)->flags |= IPSKB_FORWARDED; in ipmr_queue_xmit() 2102 dev = dev_get_by_index_rcu(net, IPCB(skb)->iif); in ip_mr_input() 2112 if (IPCB(skb)->flags & IPSKB_FORWARDED) in ip_mr_input() 2121 if (IPCB(skb)->opt.router_alert) { in ip_mr_input()
|
/linux-6.1.9/net/sched/ |
D | sch_frag.c | 69 memset(IPCB(skb), 0, sizeof(struct inet_skb_parm)); in sch_frag_prepare_frag() 105 IPCB(skb)->frag_max_size = mru; in sch_fragment()
|
/linux-6.1.9/net/xfrm/ |
D | xfrm_output.c | 414 IPCB(skb)->flags |= IPSKB_XFRM_TUNNEL_SIZE; in xfrm4_prepare_output() 622 BUILD_BUG_ON(sizeof(*IPCB(skb)) > SKB_GSO_CB_OFFSET); in xfrm_output_gso() 711 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in xfrm_output() 712 IPCB(skb)->flags |= IPSKB_XFRM_TRANSFORMED; in xfrm_output() 773 if (IPCB(skb)->flags & IPSKB_XFRM_TUNNEL_SIZE) in xfrm4_tunnel_check_size()
|
/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_net.c | 230 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in prepare_ipv4_hdr() 256 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in prepare_ipv6_hdr() 257 IPCB(skb)->flags &= ~(IPSKB_XFRM_TUNNEL_SIZE | IPSKB_XFRM_TRANSFORMED in prepare_ipv6_hdr()
|
/linux-6.1.9/net/bridge/ |
D | br_netfilter_hooks.c | 229 memset(IPCB(skb), 0, sizeof(struct inet_skb_parm)); in br_validate_ipv4() 360 nf_bridge->frag_max_size = IPCB(skb)->frag_max_size; in br_nf_pre_routing_finish() 550 nf_bridge->frag_max_size = IPCB(skb)->frag_max_size; in br_nf_forward_finish() 621 IPCB(skb)->frag_max_size = nf_bridge->frag_max_size; in br_nf_forward_ip() 713 (IPCB(skb)->frag_max_size && in br_nf_ip_fragment() 714 IPCB(skb)->frag_max_size > mtu))) { in br_nf_ip_fragment() 766 IPCB(skb)->frag_max_size = nf_bridge->frag_max_size; in br_nf_dev_queue_xmit()
|
/linux-6.1.9/include/net/ |
D | icmp.h | 43 __icmp_send(skb_in, type, code, info, &IPCB(skb_in)->opt); in icmp_send()
|
D | ip.h | 101 #define IPCB(skb) ((struct inet_skb_parm*)((skb)->cb)) macro 108 if (skb && ipv4_l3mdev_skb(IPCB(skb)->flags)) in inet_sdif() 109 return IPCB(skb)->iif; in inet_sdif() 481 bool forwarding = IPCB(skb)->flags & IPSKB_FORWARDED; in ip_skb_dst_mtu() 722 return __ip_options_echo(net, dopt, skb, &IPCB(skb)->opt); in ip_options_echo()
|
/linux-6.1.9/drivers/net/ |
D | vrf.c | 583 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in vrf_process_v4_outbound() 742 if (!(IPCB(skb)->flags & IPSKB_REROUTED)) in vrf_output6_direct() 922 !(IPCB(skb)->flags & IPSKB_REROUTED)); in vrf_output() 972 if (!(IPCB(skb)->flags & IPSKB_REROUTED)) in vrf_output_direct() 1027 IPCB(skb)->flags & IPSKB_XFRM_TRANSFORMED) in vrf_ip_out() 1451 IPCB(skb)->flags |= IPSKB_L3SLAVE; in vrf_ip_rcv()
|
/linux-6.1.9/drivers/net/ppp/ |
D | pptp.c | 221 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in pptp_xmit() 222 IPCB(skb)->flags &= ~(IPSKB_XFRM_TUNNEL_SIZE | IPSKB_XFRM_TRANSFORMED | IPSKB_REROUTED); in pptp_xmit()
|
/linux-6.1.9/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 1245 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip_vs_tunnel_xmit() 1393 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip_vs_tunnel_xmit_v6()
|
/linux-6.1.9/net/ipv6/ |
D | ip6_gre.c | 752 IPCB(skb)->flags = 0; in __gre6_xmit() 819 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip6gre_xmit_ipv4() 1004 IPCB(skb)->flags = 0; in ip6erspan_tunnel_xmit() 1052 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in ip6erspan_tunnel_xmit()
|
/linux-6.1.9/net/netfilter/ |
D | nf_flow_table_ip.c | 404 IPCB(skb)->iif = skb->dev->ifindex; in nf_flow_offload_ip_hook() 405 IPCB(skb)->flags = IPSKB_FORWARDED; in nf_flow_offload_ip_hook()
|
/linux-6.1.9/net/l2tp/ |
D | l2tp_core.c | 1040 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in l2tp_xmit_core() 1041 IPCB(skb)->flags &= ~(IPSKB_XFRM_TUNNEL_SIZE | IPSKB_XFRM_TRANSFORMED | IPSKB_REROUTED); in l2tp_xmit_core()
|
/linux-6.1.9/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 167 br_skb_cb_restore(skb, &cb, IPCB(skb)->frag_max_size); in nf_ct_br_defrag4()
|