Home
last modified time | relevance | path

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

12345678910>>...12

/linux/net/ipv6/netfilter/
H 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/include/linux/
H A Dipv6.h108 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) in ipv6_hdr()
110 return (struct ipv6hdr *)skb_network_header(skb); in ipv6_hdr()
113 static inline struct ipv6hdr *inner_ipv6_hdr(const struct sk_buff *skb) in inner_ipv6_hdr()
115 return (struct ipv6hdr *)skb_inner_network_header(skb); in inner_ipv6_hdr()
118 static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) in ipipv6_hdr()
120 return (struct ipv6hdr *)skb_transport_header(skb); in ipipv6_hdr()
125 return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) - in ipv6_transport_len()
130 ipv6_payload_len(const struct sk_buff *skb, const struct ipv6hdr *ip6) in ipv6_payload_len()
136 skb->len - skb_network_offset(skb) - sizeof(struct ipv6hdr); in ipv6_payload_len()
146 static inline void ipv6_set_payload_len(struct ipv6hdr *ip6, unsigned int len) in ipv6_set_payload_len()
/linux/samples/bpf/
H 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()
H A Dsockex2_kern.c89 nhoff + offsetof(struct ipv6hdr, nexthdr)); in parse_ipv6()
91 nhoff + offsetof(struct ipv6hdr, saddr)); in parse_ipv6()
93 nhoff + offsetof(struct ipv6hdr, daddr)); in parse_ipv6()
94 nhoff += sizeof(struct ipv6hdr); in parse_ipv6()
H A Dparse_varlen.c80 struct ipv6hdr *ip6h; in parse_ipv6()
82 uint64_t ihl_len = sizeof(struct ipv6hdr); in parse_ipv6()
101 ihl_len += sizeof(struct ipv6hdr); in parse_ipv6()
/linux/net/6lowpan/
H 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()
H 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/net/ipv6/
H A Drpl_iptunnel.c132 struct ipv6hdr oldhdr; in rpl_do_srh_inline()
133 struct ipv6hdr *hdr; in rpl_do_srh_inline()
163 skb_pull(skb, sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
165 sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
167 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in rpl_do_srh_inline()
180 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
181 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in rpl_do_srh_inline()
183 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in rpl_do_srh_inline()
222 struct ipv6hdr *hdr = ipv6_hdr(skb); in rpl_output()
H A Dah6.c51 struct ipv6hdr *top_iph, int extlen) in ah6_save_hdrs()
64 static inline void ah6_restore_hdrs(struct ipv6hdr *top_iph, in ah6_restore_hdrs()
174 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
224 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {} in ipv6_rearrange_destopt()
236 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr()
266 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options()
269 struct ipv6hdr *iph; in ipv6_clear_mutable_options()
317 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done()
323 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
355 struct ipv6hdr *top_iph; in ah6_output()
[all …]
H A Dseg6_iptunnel.c40 head = sizeof(struct ipv6hdr); in seg6_lwt_headroom()
123 struct ipv6hdr *inner_hdr) in seg6_make_flowlabel()
146 struct ipv6hdr *hdr, *inner_hdr; in __seg6_do_srh_encap()
208 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in __seg6_do_srh_encap()
232 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap_red()
254 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
296 isrh = (void *)hdr + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
336 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_encap_red()
346 struct ipv6hdr *hdr, *oldhdr; in __seg6_do_srh_inline()
358 skb_pull(skb, sizeof(struct ipv6hdr)); in __seg6_do_srh_inline()
[all …]
H A Desp6_offload.c32 static __u16 esp6_nexthdr_esp_offset(struct ipv6hdr *ipv6_hdr, int nhlen) in esp6_nexthdr_esp_offset()
34 int off = sizeof(struct ipv6hdr); in esp6_nexthdr_esp_offset()
40 return offsetof(struct ipv6hdr, nexthdr); in esp6_nexthdr_esp_offset()
115 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr); in esp6_gro_receive()
136 struct ipv6hdr *iph = ipv6_hdr(skb); in esp6_gso_encap()
145 ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &proto, &frag); in esp6_gso_encap()
198 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in xfrm6_beet_gso_segment()
369 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
H A Dexthdrs.c235 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
454 skb_push(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
478 skb_pull(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
493 struct ipv6hdr *oldhdr; in ipv6_rpl_srh_rcv()
595 sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
596 chdr_len = sizeof(struct ipv6hdr) + ((chdr->hdrlen + 1) << 3); in ipv6_rpl_srh_rcv()
612 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
614 memmove(ipv6_hdr(skb), oldhdr, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
617 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
619 sizeof(struct ipv6hdr) + ((chdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
[all …]
/linux/net/bridge/
H A Dbr_arp_nd_proxy.c240 sizeof(struct ipv6hdr), sizeof(*msg), msg); in br_is_nd_neigh_msg()
260 struct ipv6hdr *pip6; in br_nd_send()
270 len = LL_RESERVED_SPACE(dev) + sizeof(struct ipv6hdr) + in br_nd_send()
285 sizeof(struct ipv6hdr)); in br_nd_send()
289 sizeof(struct ipv6hdr)) - sizeof(*ns); in br_nd_send()
311 skb_put(reply, sizeof(struct ipv6hdr)); in br_nd_send()
315 memset(pip6, 0, sizeof(struct ipv6hdr)); in br_nd_send()
323 skb_pull(reply, sizeof(struct ipv6hdr)); in br_nd_send()
347 skb_push(reply, sizeof(struct ipv6hdr)); in br_nd_send()
412 struct ipv6hdr *iphdr; in br_do_suppress_nd()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_cls_redirect.c281 const struct ipv6hdr *ipv6,
348 static __always_inline struct ipv6hdr *
349 pkt_parse_ipv6(buf_t *pkt, struct ipv6hdr *scratch, uint8_t *proto,
352 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6()
426 skb, payload_off + offsetof(struct ipv6hdr, hop_limit), in forward_with_gre()
440 skb, payload_off + offsetof(struct ipv6hdr, hop_limit), in forward_with_gre()
632 case sizeof(struct ipv6hdr): { in fill_tuple()
633 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple()
667 iphlen = sizeof(struct ipv6hdr); in classify_tcp()
[all...]
H A Dcgroup_skb_sk_lookup_kern.c30 const struct ipv6hdr *ip6h, in set_tuple()
40 const struct ipv6hdr *ip6h, in is_allowed_peer_cg()
69 struct ipv6hdr ip6h; in ingress_lookup()
H 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()
H A Dtest_xdp_noinline.c221 off += sizeof(struct ipv6hdr); in calc_offset()
223 off += sizeof(struct icmp6hdr) + sizeof(struct ipv6hdr); in calc_offset()
285 struct ipv6hdr *ip6h; in encap_v6()
290 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in encap_v6()
296 old_eth = data + sizeof(struct ipv6hdr); in encap_v6()
310 bpf_htons(pkt_bytes + sizeof(struct ipv6hdr)); in encap_v6()
436 struct ipv6hdr *ip6h; in send_icmp6_reply()
441 + sizeof(struct ipv6hdr) + sizeof(struct icmp6hdr) > data_end) in send_icmp6_reply()
445 off += sizeof(struct ipv6hdr); in send_icmp6_reply()
461 struct ipv6hdr *ip6h; in parse_icmpv6()
[all …]
H A Dtest_tcpbpf_kern.c34 char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)]; in bpf_testcb()
107 header, (sizeof(struct ipv6hdr) + in bpf_testcb()
110 int offset = sizeof(struct ipv6hdr); in bpf_testcb()
H A Dtest_pkt_access.c91 if (off > sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) in test_pkt_write_access_subprog()
124 struct ipv6hdr *ip6h = (struct ipv6hdr *)(eth + 1); in test_pkt_access()
/linux/tools/testing/selftests/net/
H A Dnat6to4.bpf.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/lib/tests/
H A Dblackhole_dev_kunit.c29 struct ipv6hdr *ip6h; in test_blackholedev()
52 ip6h = (struct ipv6hdr *)skb_push(skb, sizeof(struct ipv6hdr)); in test_blackholedev()
/linux/drivers/net/wireguard/selftest/
H A Dratelimiter.c34 struct sk_buff *skb6, struct ipv6hdr *hdr6, in timings_test()
125 struct ipv6hdr *hdr6 = NULL; in wg_ratelimiter_selftest()
157 skb6 = alloc_skb(sizeof(struct ipv6hdr), GFP_KERNEL); in wg_ratelimiter_selftest()
163 hdr6 = (struct ipv6hdr *)skb_put(skb6, sizeof(*hdr6)); in wg_ratelimiter_selftest()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c41 struct ipv6hdr iph;
47 struct ipv6hdr iph;
63 struct ipv6hdr iph;
133 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
180 sizeof(struct ipv6hdr),
253 .thoff = ETH_HLEN + sizeof(struct ipv6hdr) +
279 .thoff = ETH_HLEN + sizeof(struct ipv6hdr) +
302 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
326 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
349 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
/linux/tools/testing/selftests/drivers/net/
H A Dgro.c
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c50 struct ipv6hdr *ipv6hdr = ipv6_hdr(skb); in mlx5e_ipsec_remove_trailer() local
69 ipv6hdr->payload_len = htons(ntohs(ipv6hdr->payload_len) - in mlx5e_ipsec_remove_trailer()
245 ((struct ipv6hdr *)skb_network_header(skb))->nexthdr; in mlx5e_ipsec_tx_build_eseg()

12345678910>>...12