Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/include/linux/
Dipv6.h154 #define IP6CB(skb) ((struct inet6_skb_parm*)((skb)->cb)) macro
159 bool l3_slave = ipv6_l3mdev_skb(IP6CB(skb)->flags); in inet6_iif()
161 return l3_slave ? skb->skb_iif : IP6CB(skb)->iif; in inet6_iif()
166 return !!(IP6CB(skb)->flags & IP6SKB_JUMBOGRAM); in inet6_is_jumbogram()
173 if (skb && ipv6_l3mdev_skb(IP6CB(skb)->flags)) in inet6_sdif()
174 return IP6CB(skb)->iif; in inet6_sdif()
Dicmpv6.h49 __icmpv6_send(skb, type, code, info, IP6CB(skb)); in icmpv6_send()
/kernel/linux/linux-5.10/net/ipv6/
Dreassembly.c292 IP6CB(skb)->nhoff = nhoff; in ip6_frag_reasm()
293 IP6CB(skb)->flags |= IP6SKB_FRAGMENTED; in ip6_frag_reasm()
294 IP6CB(skb)->frag_max_size = fq->q.max_size; in ip6_frag_reasm()
330 if (IP6CB(skb)->flags & IP6SKB_FRAGMENTED) in ipv6_frag_rcv()
352 IP6CB(skb)->nhoff = (u8 *)fhdr - skb_network_header(skb); in ipv6_frag_rcv()
353 IP6CB(skb)->flags |= IP6SKB_FRAGMENTED; in ipv6_frag_rcv()
354 IP6CB(skb)->frag_max_size = ntohs(hdr->payload_len) + in ipv6_frag_rcv()
382 ret = ip6_frag_queue(fq, skb, fhdr, IP6CB(skb)->nhoff, in ipv6_frag_rcv()
Dip6_input.c173 memset(IP6CB(skb), 0, sizeof(struct inet6_skb_parm)); in ip6_rcv_core()
186 IP6CB(skb)->iif = skb_valid_dst(skb) ? ip6_dst_idev(skb_dst(skb))->dev->ifindex : dev->ifindex; in ip6_rcv_core()
253 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_rcv_core()
369 nhoff = IP6CB(skb)->nhoff; in ip6_protocol_deliver_rcu()
519 likely(!(IP6CB(skb)->flags & IP6SKB_FORWARDED))) { in ip6_mc_input()
525 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_mc_input()
Dexthdrs.c211 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_dest_hao()
280 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_destopt_rcv()
310 opt = IP6CB(skb); in ipv6_destopt_rcv()
354 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_srh_rcv()
474 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_rpl_srh_rcv()
661 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_rthdr_rcv()
918 IP6CB(skb)->flags |= IP6SKB_ROUTERALERT; in ipv6_hop_ra()
919 memcpy(&IP6CB(skb)->ra, nh + optoff + 2, sizeof(IP6CB(skb)->ra)); in ipv6_hop_ra()
964 IP6CB(skb)->flags |= IP6SKB_JUMBOGRAM; in ipv6_hop_jumbo()
1012 struct inet6_skb_parm *opt = IP6CB(skb); in ipv6_parse_hopopts()
[all …]
Dxfrm6_output.c77 IP6CB(skb)->flags |= IP6SKB_REROUTED; in __xfrm6_output()
118 !(IP6CB(skb)->flags & IP6SKB_REROUTED)); in xfrm6_output()
Dxfrm6_input.c46 skb_network_header(skb)[IP6CB(skb)->nhoff] = in xfrm6_transport_finish()
168 return xfrm6_rcv_spi(skb, skb_network_header(skb)[IP6CB(skb)->nhoff], in xfrm6_rcv_tnl()
Dip6_output.c100 !(IP6CB(skb)->flags & IP6SKB_FORWARDED)) || in ip6_finish_output2()
196 IP6CB(skb)->flags |= IP6SKB_REROUTED; in __ip6_finish_output()
207 (IP6CB(skb)->frag_max_size && skb->len > IP6CB(skb)->frag_max_size)) in __ip6_finish_output()
246 !(IP6CB(skb)->flags & IP6SKB_REROUTED)); in ip6_output()
476 if (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu) in ip6_pkt_too_big()
492 struct inet6_skb_parm *opt = IP6CB(skb); in ip6_forward()
497 idev = __in6_dev_get_safely(dev_get_by_index_rcu(net, IP6CB(skb)->iif)); in ip6_forward()
570 if (IP6CB(skb)->iif == dst->dev->ifindex && in ip6_forward()
860 if (IP6CB(skb)->frag_max_size) { in ip6_fragment()
861 if (IP6CB(skb)->frag_max_size > mtu) in ip6_fragment()
[all …]
Dseg6_iptunnel.c162 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in seg6_do_srh_encap()
170 IP6CB(skb)->iif = skb->skb_iif; in seg6_do_srh_encap()
Ddatagram.c439 if (!IP6CB(skb)->iif) in ip6_datagram_support_cmsg()
493 IP6CB(skb)->iif); in ipv6_recv_error()
516 IP6CB(skb)->iif); in ipv6_recv_error()
599 src_info.ipi6_ifindex = IP6CB(skb)->iif; in ip6_datagram_recv_common_ctl()
618 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()
Dnetfilter.c58 if (!(IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) && in ip6_route_me_harder()
Dicmp.c646 icmp6_send(skb, ICMPV6_PARAMPROB, code, pos, NULL, IP6CB(skb)); in icmpv6_param_prob()
703 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach()
706 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach()
Dxfrm6_tunnel.c219 return skb_network_header(skb)[IP6CB(skb)->nhoff]; in xfrm6_tunnel_input()
Dip6_vti.c340 int nexthdr = skb_network_header(skb)[IP6CB(skb)->nhoff]; in vti6_rcv()
572 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vti6_tnl_xmit()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_output.c545 BUILD_BUG_ON(sizeof(*IP6CB(skb)) > SKB_GSO_CB_OFFSET); in xfrm_output_gso()
580 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in xfrm_output()
582 IP6CB(skb)->flags |= IP6SKB_XFRM_TRANSFORMED; in xfrm_output()
Dxfrm_interface_core.c242 return xfrmi_input(skb, skb_network_header(skb)[IP6CB(skb)->nhoff], in xfrmi6_rcv()
406 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in xfrmi_xmit()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
Dnf_conntrack_reasm.c357 IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
358 IP6CB(skb)->flags |= IP6SKB_FRAGMENTED; in nf_ct_frag6_reasm()
/kernel/linux/linux-5.10/drivers/net/
Dvrf.c500 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vrf_process_v6_outbound()
693 !(IP6CB(skb)->flags & IP6SKB_REROUTED)); in vrf_output6()
797 IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) in vrf_ip6_out()
1346 IP6CB(skb)->flags |= IP6SKB_L3SLAVE; in vrf_ip6_rcv()
1368 IP6CB(skb)->flags |= IP6SKB_L3SLAVE; in vrf_ip6_rcv()
/kernel/linux/linux-5.10/drivers/net/ipvlan/
Dipvlan_l3s.c107 IP6CB(skb)->iif = skb->dev->ifindex; in ipvlan_nf_input()
Dipvlan_core.c482 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in ipvlan_process_v6_outbound()
/kernel/linux/linux-5.10/net/netfilter/
Dnf_flow_table_ip.c541 IP6CB(skb)->iif = skb->dev->ifindex; in nf_flow_offload_ipv6_hook()
542 IP6CB(skb)->flags = IP6SKB_FORWARDED; in nf_flow_offload_ipv6_hook()
/kernel/linux/linux-5.10/net/ipv4/
Dip_vti.c294 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vti_tunnel_xmit()

12