Home
last modified time | relevance | path

Searched refs:IP6CB (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/include/linux/ !
Dipv6.h163 #define IP6CB(skb) ((struct inet6_skb_parm*)((skb)->cb)) macro
168 bool l3_slave = ipv6_l3mdev_skb(IP6CB(skb)->flags); in inet6_iif()
170 return l3_slave ? skb->skb_iif : IP6CB(skb)->iif; in inet6_iif()
175 return !!(IP6CB(skb)->flags & IP6SKB_JUMBOGRAM); in inet6_is_jumbogram()
182 if (skb && ipv6_l3mdev_skb(IP6CB(skb)->flags)) in inet6_sdif()
183 return IP6CB(skb)->iif; in inet6_sdif()
Dicmpv6.h49 __icmpv6_send(skb, type, code, info, IP6CB(skb)); in icmpv6_send()
/linux-6.1.9/net/ipv6/ !
Dreassembly.c293 IP6CB(skb)->nhoff = nhoff; in ip6_frag_reasm()
294 IP6CB(skb)->flags |= IP6SKB_FRAGMENTED; in ip6_frag_reasm()
295 IP6CB(skb)->frag_max_size = fq->q.max_size; in ip6_frag_reasm()
331 if (IP6CB(skb)->flags & IP6SKB_FRAGMENTED) in ipv6_frag_rcv()
353 IP6CB(skb)->nhoff = (u8 *)fhdr - skb_network_header(skb); in ipv6_frag_rcv()
354 IP6CB(skb)->flags |= IP6SKB_FRAGMENTED; in ipv6_frag_rcv()
355 IP6CB(skb)->frag_max_size = ntohs(hdr->payload_len) + in ipv6_frag_rcv()
383 ret = ip6_frag_queue(fq, skb, fhdr, IP6CB(skb)->nhoff, in ipv6_frag_rcv()
Dip6_input.c177 memset(IP6CB(skb), 0, sizeof(struct inet6_skb_parm)); in ip6_rcv_core()
190 IP6CB(skb)->iif = skb_valid_dst(skb) ? ip6_dst_idev(skb_dst(skb))->dev->ifindex : dev->ifindex; in ip6_rcv_core()
261 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_rcv_core()
377 nhoff = IP6CB(skb)->nhoff; in ip6_protocol_deliver_rcu()
535 likely(!(IP6CB(skb)->flags & IP6SKB_FORWARDED))) { in ip6_mc_input()
541 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_mc_input()
Dexthdrs.c234 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao()
298 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv()
327 opt = IP6CB(skb); in ipv6_destopt_rcv()
371 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_srh_rcv()
492 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_rpl_srh_rcv()
683 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_rthdr_rcv()
934 IP6CB(skb)->flags |= IP6SKB_ROUTERALERT; in ipv6_hop_ra()
935 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra)); in ipv6_hop_ra()
1033 IP6CB(skb)->flags |= IP6SKB_JUMBOGRAM; in ipv6_hop_jumbo()
1065 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_parse_hopopts()
[all …]
Dxfrm6_output.c70 IP6CB(skb)->flags |= IP6SKB_REROUTED; in __xfrm6_output()
111 !(IP6CB(skb)->flags & IP6SKB_REROUTED)); in xfrm6_output()
Dseg6_iptunnel.c165 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in seg6_do_srh_encap()
173 IP6CB(skb)->iif = skb->skb_iif; in seg6_do_srh_encap()
254 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in seg6_do_srh_encap_red()
255 IP6CB(skb)->iif = skb->skb_iif; in seg6_do_srh_encap_red()
Dip6_output.c84 !(IP6CB(skb)->flags & IP6SKB_FORWARDED)) || in ip6_finish_output2()
179 IP6CB(skb)->flags |= IP6SKB_REROUTED; in __ip6_finish_output()
186 !(IP6CB(skb)->flags & IP6SKB_FAKEJUMBO) && in __ip6_finish_output()
192 (IP6CB(skb)->frag_max_size && skb->len > IP6CB(skb)->frag_max_size)) in __ip6_finish_output()
230 !(IP6CB(skb)->flags & IP6SKB_REROUTED)); in ip6_output()
300 IP6CB(skb)->flags |= IP6SKB_FAKEJUMBO; in ip6_xmit()
472 if (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu) in ip6_pkt_too_big()
488 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_forward()
494 idev = __in6_dev_get_safely(dev_get_by_index_rcu(net, IP6CB(skb)->iif)); in ip6_forward()
582 if (IP6CB(skb)->iif == dst->dev->ifindex && in ip6_forward()
[all …]
Dxfrm6_input.c46 skb_network_header(skb)[IP6CB(skb)->nhoff] = in xfrm6_transport_finish()
165 return xfrm6_rcv_spi(skb, skb_network_header(skb)[IP6CB(skb)->nhoff], in xfrm6_rcv_tnl()
Ddatagram.c444 if (!IP6CB(skb)->iif) in ip6_datagram_support_cmsg()
498 IP6CB(skb)->iif); in ipv6_recv_error()
521 IP6CB(skb)->iif); in ipv6_recv_error()
604 src_info.ipi6_ifindex = IP6CB(skb)->iif; in ip6_datagram_recv_common_ctl()
623 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_datagram_recv_specific_ctl()
Doutput_core.c138 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
Dicmp.c637 icmp6_send(skb, ICMPV6_PARAMPROB, code, pos, NULL, IP6CB(skb)); in icmpv6_param_prob_reason()
694 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach()
697 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach()
817 struct inet6_skb_parm *opt = IP6CB(skb); in icmpv6_notify()
Dnetfilter.c63 if (!(IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) && in ip6_route_me_harder()
Dxfrm6_tunnel.c219 return skb_network_header(skb)[IP6CB(skb)->nhoff]; in xfrm6_tunnel_input()
Dip6_vti.c341 int nexthdr = skb_network_header(skb)[IP6CB(skb)->nhoff]; in vti6_rcv()
574 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vti6_tnl_xmit()
Desp6_offload.c99 IP6CB(skb)->nhoff = nhoff; in esp6_gro_receive()
/linux-6.1.9/net/bridge/ !
Dbr_netfilter_ipv6.c135 memset(IP6CB(skb), 0, sizeof(struct inet6_skb_parm)); in br_validate_ipv6()
167 nf_bridge->frag_max_size = IP6CB(skb)->frag_max_size; in br_nf_pre_routing_finish_ipv6()
Dbr_netfilter_hooks.c553 nf_bridge->frag_max_size = IP6CB(skb)->frag_max_size; in br_nf_forward_finish()
627 IP6CB(skb)->frag_max_size = nf_bridge->frag_max_size; in br_nf_forward_ip()
793 IP6CB(skb)->frag_max_size = nf_bridge->frag_max_size; in br_nf_dev_queue_xmit()
/linux-6.1.9/net/xfrm/ !
Dxfrm_output.c623 BUILD_BUG_ON(sizeof(*IP6CB(skb)) > SKB_GSO_CB_OFFSET); in xfrm_output_gso()
715 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in xfrm_output()
717 IP6CB(skb)->flags |= IP6SKB_XFRM_TRANSFORMED; in xfrm_output()
/linux-6.1.9/net/sched/ !
Dsch_frag.c121 IP6CB(skb)->frag_max_size = mru; in sch_fragment()
/linux-6.1.9/drivers/net/ !
Dvrf.c500 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vrf_process_v6_outbound()
692 !(IP6CB(skb)->flags & IP6SKB_REROUTED)); in vrf_output6()
796 IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) in vrf_ip6_out()
1394 IP6CB(skb)->flags |= IP6SKB_L3SLAVE; in vrf_ip6_rcv()
1425 IP6CB(skb)->flags |= IP6SKB_L3SLAVE; in vrf_ip6_rcv()
/linux-6.1.9/net/ipv6/netfilter/ !
Dnf_conntrack_reasm.c354 IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
355 IP6CB(skb)->flags |= IP6SKB_FRAGMENTED; in nf_ct_frag6_reasm()
/linux-6.1.9/net/ipv4/ !
Dip_vti.c295 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vti_tunnel_xmit()
/linux-6.1.9/net/netfilter/ !
Dnf_flow_table_ip.c665 IP6CB(skb)->iif = skb->dev->ifindex; in nf_flow_offload_ipv6_hook()
666 IP6CB(skb)->flags = IP6SKB_FORWARDED; in nf_flow_offload_ipv6_hook()
/linux-6.1.9/net/bridge/netfilter/ !
Dnf_conntrack_bridge.c197 br_skb_cb_restore(skb, &cb, IP6CB(skb)->frag_max_size); in nf_ct_br_defrag6()

12