Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.6.21/net/ipv6/netfilter/
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()
53 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) in nf_reject_ip6hdr_validate()
68 struct ipv6hdr *nip6h; in nf_reject_skb_v6_tcp_reset()
77 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nf_reject_skb_v6_tcp_reset()
88 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nf_reject_skb_v6_tcp_reset()
100 struct ipv6hdr *nip6h; in nf_reject_skb_v6_unreach()
118 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct icmp6hdr) + in nf_reject_skb_v6_unreach()
135 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nf_reject_skb_v6_unreach()
[all …]
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.6.21/include/net/
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.6.21/samples/bpf/
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.6.21/net/6lowpan/
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()
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.6.21/net/ipv6/
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()
194 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); 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()
313 hdr->payload_len = htons(skb->len - 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()
[all …]
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()
Dip6_offload.c79 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
131 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
166 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
195 struct ipv6hdr *iph; in ipv6_gro_receive()
237 const struct ipv6hdr *iph2; in ipv6_gro_receive()
243 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive()
260 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
262 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
324 struct ipv6hdr *iph; in ipv6_gro_complete()
345 iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
[all …]
Dah6.c149 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
199 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()
[all …]
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()
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()
38 return offsetof(struct ipv6hdr, nexthdr); in esp6_nexthdr_esp_offset()
102 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr); in esp6_gro_receive()
123 struct ipv6hdr *iph = ipv6_hdr(skb); in esp6_gso_encap()
132 ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &proto, &frag); in esp6_gso_encap()
183 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in xfrm6_beet_gso_segment()
354 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
Dexthdrs.c234 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
449 skb_push(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
473 skb_pull(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
488 struct ipv6hdr *oldhdr; in ipv6_rpl_srh_rcv()
591 sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
593 if (pskb_expand_head(skb, sizeof(struct ipv6hdr) + ((chdr->hdrlen + 1) << 3), 0, in ipv6_rpl_srh_rcv()
603 skb_push(skb, ((chdr->hdrlen + 1) << 3) + sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
606 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
608 memmove(ipv6_hdr(skb), oldhdr, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
611 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
[all …]
/linux-6.6.21/include/linux/
Dipv6.h99 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) in ipv6_hdr()
101 return (struct ipv6hdr *)skb_network_header(skb); in ipv6_hdr()
104 static inline struct ipv6hdr *inner_ipv6_hdr(const struct sk_buff *skb) in inner_ipv6_hdr()
106 return (struct ipv6hdr *)skb_inner_network_header(skb); in inner_ipv6_hdr()
109 static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) in ipipv6_hdr()
111 return (struct ipv6hdr *)skb_transport_header(skb); in ipipv6_hdr()
116 return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) - in ipv6_transport_len()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
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()
Dtest_cls_redirect.c280 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers()
347 static __always_inline struct ipv6hdr *
348 pkt_parse_ipv6(buf_t *pkt, struct ipv6hdr *scratch, uint8_t *proto, in pkt_parse_ipv6()
351 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6()
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()
[all …]
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()
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()
Dtest_tcpbpf_kern.c45 char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)]; in bpf_testcb()
118 header, (sizeof(struct ipv6hdr) + in bpf_testcb()
121 int offset = sizeof(struct ipv6hdr); in bpf_testcb()
/linux-6.6.21/lib/
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.6.21/net/bridge/
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.6.21/tools/testing/selftests/net/
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.6.21/net/ipv6/ila/
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.6.21/drivers/infiniband/sw/rxe/
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()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c67 struct ipv6hdr iph;
73 struct ipv6hdr iph;
89 struct ipv6hdr iph;
146 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
193 sizeof(struct ipv6hdr),
266 .thoff = ETH_HLEN + sizeof(struct ipv6hdr) +
292 .thoff = ETH_HLEN + sizeof(struct ipv6hdr) +
315 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
339 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),
362 .thoff = ETH_HLEN + sizeof(struct ipv6hdr),

12345678910>>...14