Home
last modified time | relevance | path

Searched refs:ipv6hdr (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/linux-6.3-rc2/net/ipv6/netfilter/
A Dnf_reject_ipv6.c17 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_reject_v6_csum_ok()
42 struct ipv6hdr *hdr; in nf_reject_ip6hdr_validate()
45 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in nf_reject_ip6hdr_validate()
68 struct ipv6hdr *nip6h; in nf_reject_skb_v6_tcp_reset()
100 struct ipv6hdr *nip6h; in nf_reject_skb_v6_unreach()
139 nskb->len - sizeof(struct ipv6hdr), in nf_reject_skb_v6_unreach()
142 nskb->len - sizeof(struct ipv6hdr), in nf_reject_skb_v6_unreach()
201 struct ipv6hdr *ip6h; in nf_reject_ip6hdr_put()
206 skb_put(nskb, sizeof(struct ipv6hdr)); in nf_reject_ip6hdr_put()
287 struct ipv6hdr *ip6h; in nf_send_reset6()
[all …]
A Dip6t_NPT.c80 static struct ipv6hdr *icmpv6_bounced_ipv6hdr(struct sk_buff *skb, in icmpv6_bounced_ipv6hdr()
81 struct ipv6hdr *_bounced_hdr) in icmpv6_bounced_ipv6hdr()
91 sizeof(struct ipv6hdr), in icmpv6_bounced_ipv6hdr()
99 struct ipv6hdr _bounced_hdr; in ip6t_snpt_tg()
100 struct ipv6hdr *bounced_hdr; in ip6t_snpt_tg()
105 offsetof(struct ipv6hdr, saddr)); in ip6t_snpt_tg()
124 struct ipv6hdr _bounced_hdr; in ip6t_dnpt_tg()
125 struct ipv6hdr *bounced_hdr; in ip6t_dnpt_tg()
130 offsetof(struct ipv6hdr, daddr)); in ip6t_dnpt_tg()
/linux-6.3-rc2/include/net/
A Dinet_ecn.h126 struct ipv6hdr;
134 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ce()
150 static inline int IP6_ECN_set_ect1(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ect1()
166 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp()
182 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ce()
200 if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr))) in skb_get_dsfield()
218 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ect1()
305 static inline int IP6_ECN_decapsulate(const struct ipv6hdr *oipv6h, in IP6_ECN_decapsulate()
/linux-6.3-rc2/samples/bpf/
A Dtcp_tos_reflect_kern.c26 char header[sizeof(struct ipv6hdr)]; in bpf_basertt()
27 struct ipv6hdr *hdr6; in bpf_basertt()
49 hdr_size = sizeof(struct ipv6hdr); in bpf_basertt()
60 hdr6 = (struct ipv6hdr *) header; in bpf_basertt()
/linux-6.3-rc2/net/6lowpan/
A Dnhc.c42 const struct ipv6hdr *hdr, u8 **hc_ptr) in lowpan_nhc_check_compression()
58 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr, in lowpan_nhc_do_compression()
86 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in lowpan_nhc_do_compression()
103 struct ipv6hdr *hdr) in lowpan_nhc_do_uncompression()
113 ret = nhc->uncompress(skb, sizeof(struct ipv6hdr) + in lowpan_nhc_do_uncompression()
A Dnhc.h89 const struct ipv6hdr *hdr, u8 **hc_ptr);
99 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr,
112 struct ipv6hdr *hdr);
/linux-6.3-rc2/net/ipv6/
A Dseg6_iptunnel.c40 head = sizeof(struct ipv6hdr); in seg6_lwt_headroom()
111 struct ipv6hdr *inner_hdr) in seg6_make_flowlabel()
132 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap()
209 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap_red()
231 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
273 isrh = (void *)hdr + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
323 struct ipv6hdr *hdr, *oldhdr; in seg6_do_srh_inline()
335 skb_pull(skb, sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
337 sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
339 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
[all …]
A Drpl_iptunnel.c131 const struct ipv6hdr *oldhdr; in rpl_do_srh_inline()
132 struct ipv6hdr *hdr; in rpl_do_srh_inline()
162 skb_pull(skb, sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
164 sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
166 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in rpl_do_srh_inline()
179 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
180 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
182 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in rpl_do_srh_inline()
220 struct ipv6hdr *hdr = ipv6_hdr(skb); in rpl_output()
A Dip6_offload.c78 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
130 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
165 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
194 struct ipv6hdr *iph; in ipv6_gro_receive()
236 const struct ipv6hdr *iph2; in ipv6_gro_receive()
242 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive()
259 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
261 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
323 struct ipv6hdr *iph; in ipv6_gro_complete()
344 iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
[all …]
A Dah6.c149 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
211 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr()
241 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options()
244 struct ipv6hdr *iph; in ipv6_clear_mutable_options()
292 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done()
296 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
331 struct ipv6hdr *top_iph; in ah6_output()
349 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
518 struct ipv6hdr *ip6h; in ah6_input()
647 struct ipv6hdr *iph = (struct ipv6hdr *)skb->data; in ah6_err()
[all …]
A Doutput_core.c37 offsetof(struct ipv6hdr, saddr), in ipv6_proxy_select_ident()
60 unsigned int offset = sizeof(struct ipv6hdr); in ip6_find_1stfragopt()
128 len = skb->len - sizeof(struct ipv6hdr); in __ip6_local_out()
132 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
A Desp6_offload.c31 static __u16 esp6_nexthdr_esp_offset(struct ipv6hdr *ipv6_hdr, int nhlen) in esp6_nexthdr_esp_offset()
33 int off = sizeof(struct ipv6hdr); in esp6_nexthdr_esp_offset()
37 return offsetof(struct ipv6hdr, nexthdr); in esp6_nexthdr_esp_offset()
101 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr); in esp6_gro_receive()
122 struct ipv6hdr *iph = ipv6_hdr(skb); in esp6_gso_encap()
131 ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &proto, &frag); in esp6_gso_encap()
182 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in xfrm6_beet_gso_segment()
353 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
/linux-6.3-rc2/include/linux/
A Dipv6.h98 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) in ipv6_hdr()
100 return (struct ipv6hdr *)skb_network_header(skb); in ipv6_hdr()
103 static inline struct ipv6hdr *inner_ipv6_hdr(const struct sk_buff *skb) in inner_ipv6_hdr()
105 return (struct ipv6hdr *)skb_inner_network_header(skb); in inner_ipv6_hdr()
108 static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) in ipipv6_hdr()
110 return (struct ipv6hdr *)skb_transport_header(skb); in ipipv6_hdr()
115 return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) - in ipv6_transport_len()
/linux-6.3-rc2/net/bridge/
A Dbr_netfilter_ipv6.c78 if (pkt_len > skb->len - sizeof(struct ipv6hdr)) in br_nf_check_hbh_len()
81 pkt_len + sizeof(struct ipv6hdr))) in br_nf_check_hbh_len()
101 const struct ipv6hdr *hdr; in br_validate_ipv6()
104 u8 ip6h_len = sizeof(struct ipv6hdr); in br_validate_ipv6()
235 skb->transport_header = skb->network_header + sizeof(struct ipv6hdr); in br_nf_pre_routing_ipv6()
A Dbr_arp_nd_proxy.c237 sizeof(struct ipv6hdr), sizeof(*msg), msg); in br_is_nd_neigh_msg()
257 struct ipv6hdr *pip6; in br_nd_send()
267 len = LL_RESERVED_SPACE(dev) + sizeof(struct ipv6hdr) + in br_nd_send()
284 sizeof(struct ipv6hdr)) - sizeof(*ns); in br_nd_send()
304 skb_put(reply, sizeof(struct ipv6hdr)); in br_nd_send()
308 memset(pip6, 0, sizeof(struct ipv6hdr)); in br_nd_send()
316 skb_pull(reply, sizeof(struct ipv6hdr)); in br_nd_send()
340 skb_push(reply, sizeof(struct ipv6hdr)); in br_nd_send()
405 struct ipv6hdr *iphdr; in br_do_suppress_nd()
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dtest_btf_skc_cls_ingress.c27 static void test_syncookie_helper(struct ipv6hdr *ip6h, struct tcphdr *th, in test_syncookie_helper()
69 static int handle_ip6_tcp(struct ipv6hdr *ip6h, struct __sk_buff *skb) in handle_ip6_tcp()
151 struct ipv6hdr *ip6h; in cls_ingress()
164 ip6h = (struct ipv6hdr *)(eth + 1); in cls_ingress()
A Dtest_cls_redirect.c280 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers()
347 static __always_inline struct ipv6hdr *
425 skb, payload_off + offsetof(struct ipv6hdr, hop_limit), in forward_with_gre()
439 skb, payload_off + offsetof(struct ipv6hdr, hop_limit), in forward_with_gre()
631 case sizeof(struct ipv6hdr): { in fill_tuple()
632 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple()
666 iphlen = sizeof(struct ipv6hdr); in classify_tcp()
787 struct ipv6hdr _ipv6; in process_icmpv6()
788 const struct ipv6hdr *ipv6 = in process_icmpv6()
897 struct ipv6hdr _ipv6; in process_ipv6()
[all …]
A Dcgroup_skb_sk_lookup_kern.c30 const struct ipv6hdr *ip6h, in set_tuple()
40 const struct ipv6hdr *ip6h, in is_allowed_peer_cg()
70 struct ipv6hdr ip6h; in ingress_lookup()
A Dxdpwall.c97 struct ipv6hdr *ipv6;
257 parse_gue_v6(struct pkt_info *info, struct ipv6hdr *ip6h, void *data_end) in parse_gue_v6()
274 struct ipv6hdr *inner_ip6h = encap_data; in parse_gue_v6()
282 info->trans_hdr_offset += sizeof(struct ipv6hdr) + sizeof(struct udphdr); in parse_gue_v6()
301 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in parse_ipv6_gue()
309 info->trans_hdr_offset = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in parse_ipv6_gue()
A Dtest_xdp_noinline.c220 off += sizeof(struct ipv6hdr); in calc_offset()
222 off += sizeof(struct icmp6hdr) + sizeof(struct ipv6hdr); in calc_offset()
284 struct ipv6hdr *ip6h; in encap_v6()
295 old_eth = data + sizeof(struct ipv6hdr); in encap_v6()
309 bpf_htons(pkt_bytes + sizeof(struct ipv6hdr)); in encap_v6()
381 new_eth = *data + sizeof(struct ipv6hdr); in decap_v6()
463 struct ipv6hdr *ip6h; in send_icmp6_reply()
472 off += sizeof(struct ipv6hdr); in send_icmp6_reply()
488 struct ipv6hdr *ip6h; in parse_icmpv6()
633 struct ipv6hdr *ip6h; in process_l3_headers_v6()
[all …]
A Dtest_tcpbpf_kern.c45 char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)]; in bpf_testcb()
120 header, (sizeof(struct ipv6hdr) + in bpf_testcb()
123 int offset = sizeof(struct ipv6hdr); in bpf_testcb()
/linux-6.3-rc2/lib/
A Dtest_blackhole_dev.c30 struct ipv6hdr *ip6h; in test_blackholedev_init()
56 ip6h = (struct ipv6hdr *)skb_push(skb, sizeof(struct ipv6hdr)); in test_blackholedev_init()
/linux-6.3-rc2/tools/testing/selftests/net/
A Dnat6to4.c55 const struct ipv6hdr * const ip6 = (void *)(eth + 1); in sched_cls_ingress6_nat_6_prog()
163 if (data + l2_header_size + sizeof(struct ipv6hdr) > data_end) in sched_cls_egress4_snat4_prog()
179 if (bpf_htons(ip4->tot_len) > 0xFFFF - sizeof(struct ipv6hdr)) in sched_cls_egress4_snat4_prog()
229 struct ipv6hdr ip6 = { in sched_cls_egress4_snat4_prog()
281 *(struct ipv6hdr *)(new_eth + 1) = ip6; in sched_cls_egress4_snat4_prog()
/linux-6.3-rc2/net/ipv6/ila/
A Dila_common.c35 static __wsum get_csum_diff(struct ipv6hdr *ip6h, struct ila_params *p) in get_csum_diff()
77 size_t nhoff = sizeof(struct ipv6hdr); in ila_csum_adjust_transport()
78 struct ipv6hdr *ip6h = ipv6_hdr(skb); in ila_csum_adjust_transport()
123 struct ipv6hdr *ip6h = ipv6_hdr(skb); in ila_update_ipv6_locator()
/linux-6.3-rc2/drivers/infiniband/sw/rxe/
A Drxe_icrc.c76 struct ipv6hdr *ip6h = NULL; in rxe_icrc_hdr()
83 sizeof(struct iphdr) : sizeof(struct ipv6hdr)); in rxe_icrc_hdr()
88 sizeof(struct ipv6hdr) + in rxe_icrc_hdr()
106 ip6h = (struct ipv6hdr *)pshdr; in rxe_icrc_hdr()

Completed in 56 milliseconds

12345678910>>...13