Home
last modified time | relevance | path

Searched refs:IPCB (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.1.9/net/ipv4/
Dip_forward.c52 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()
Dxfrm4_output.c23 IPCB(skb)->flags |= IPSKB_REROUTED; in __xfrm4_output()
36 !(IPCB(skb)->flags & IPSKB_REROUTED)); in xfrm4_output()
Dip_output.c266 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 …]
Dip_options.c49 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()
Dip_input.c278 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()
Dudp_tunnel_core.c168 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in udp_tunnel_xmit_skb()
Dip_fragment.c286 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()
Dnetfilter.c64 if (!(IPCB(skb)->flags & IPSKB_XFRM_TRANSFORMED) && in ip_route_me_harder()
Dip_sockglue.c78 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()
Dip_tunnel.c562 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()
Dip_vti.c291 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in vti_tunnel_xmit()
Dipmr.c1782 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/
Dsch_frag.c69 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/
Dxfrm_output.c414 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/
Drxe_net.c230 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/
Dbr_netfilter_hooks.c229 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/
Dicmp.h43 __icmp_send(skb_in, type, code, info, &IPCB(skb_in)->opt); in icmp_send()
Dip.h101 #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/
Dvrf.c583 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/
Dpptp.c221 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/
Dip_vs_xmit.c1245 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/
Dip6_gre.c752 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/
Dnf_flow_table_ip.c404 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/
Dl2tp_core.c1040 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/
Dnf_conntrack_bridge.c167 br_skb_cb_restore(skb, &cb, IPCB(skb)->frag_max_size); in nf_ct_br_defrag4()

12