Home
last modified time | relevance | path

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

12345678910>>...13

/kernel/linux/linux-5.10/net/ipv6/netfilter/
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()
Dnf_reject_ipv6.c19 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6_tcphdr_get()
63 struct ipv6hdr *nf_reject_ip6hdr_put(struct sk_buff *nskb, in nf_reject_ip6hdr_put()
67 struct ipv6hdr *ip6h; in nf_reject_ip6hdr_put()
68 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6hdr_put()
72 skb_put(nskb, sizeof(struct ipv6hdr)); in nf_reject_ip6hdr_put()
151 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_send_reset6()
152 struct ipv6hdr *ip6h; in nf_send_reset6()
193 nskb = alloc_skb(hh_len + 15 + dst->header_len + sizeof(struct ipv6hdr) in nf_send_reset6()
242 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_csum_ok()
/kernel/linux/linux-5.10/net/bridge/netfilter/
Dnft_reject_bridge.c167 struct ipv6hdr *hdr; in nft_bridge_ip6hdr_validate()
170 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in nft_bridge_ip6hdr_validate()
178 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) in nft_bridge_ip6hdr_validate()
193 struct ipv6hdr *nip6h; in nft_reject_br_send_v6_tcp_reset()
202 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v6_tcp_reset()
211 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nft_reject_br_send_v6_tcp_reset()
220 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_br_csum_ok()
249 struct ipv6hdr *nip6h; in nft_reject_br_send_v6_unreach()
267 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct icmp6hdr) + in nft_reject_br_send_v6_unreach()
282 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nft_reject_br_send_v6_unreach()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_icrc.c15 struct ipv6hdr *ip6h = NULL; in rxe_icrc_hdr()
22 sizeof(struct iphdr) : sizeof(struct ipv6hdr)); in rxe_icrc_hdr()
27 sizeof(struct ipv6hdr) + in rxe_icrc_hdr()
45 ip6h = (struct ipv6hdr *)pshdr; in rxe_icrc_hdr()
/kernel/linux/linux-5.10/net/ipv6/
Dseg6_iptunnel.c38 head = sizeof(struct ipv6hdr); in seg6_lwt_headroom()
108 struct ipv6hdr *inner_hdr) in seg6_make_flowlabel()
129 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap()
191 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_encap()
202 struct ipv6hdr *hdr, *oldhdr; in seg6_do_srh_inline()
214 skb_pull(skb, sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
216 sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
218 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
245 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
247 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); 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()
225 struct ipv6hdr *hdr = ipv6_hdr(skb); in rpl_output()
Dip6_offload.c77 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
126 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
161 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
190 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()
325 struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
Dah6.c149 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
202 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {} in ipv6_rearrange_destopt()
214 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr()
244 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options()
247 struct ipv6hdr *iph; in ipv6_clear_mutable_options()
295 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done()
299 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
334 struct ipv6hdr *top_iph; in ah6_output()
352 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
521 struct ipv6hdr *ip6h; in ah6_input()
[all …]
Doutput_core.c43 offsetof(struct ipv6hdr, saddr), in ipv6_proxy_select_ident()
66 unsigned int offset = sizeof(struct ipv6hdr); in ip6_find_1stfragopt()
134 len = skb->len - sizeof(struct ipv6hdr); in __ip6_local_out()
138 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
Desp6_offload.c30 static __u16 esp6_nexthdr_esp_offset(struct ipv6hdr *ipv6_hdr, int nhlen) in esp6_nexthdr_esp_offset()
32 int off = sizeof(struct ipv6hdr); in esp6_nexthdr_esp_offset()
36 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()
180 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in xfrm6_beet_gso_segment()
351 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
/kernel/linux/linux-5.10/include/net/
Dinet_ecn.h128 struct ipv6hdr;
136 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ce()
152 static inline int IP6_ECN_set_ect1(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ect1()
168 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp()
184 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ce()
203 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ect1()
290 static inline int IP6_ECN_decapsulate(const struct ipv6hdr *oipv6h, in IP6_ECN_decapsulate()
/kernel/linux/linux-5.10/include/linux/
Dipv6.h92 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) in ipv6_hdr()
94 return (struct ipv6hdr *)skb_network_header(skb); in ipv6_hdr()
97 static inline struct ipv6hdr *inner_ipv6_hdr(const struct sk_buff *skb) in inner_ipv6_hdr()
99 return (struct ipv6hdr *)skb_inner_network_header(skb); in inner_ipv6_hdr()
102 static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) in ipipv6_hdr()
104 return (struct ipv6hdr *)skb_transport_header(skb); in ipipv6_hdr()
109 return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) - in ipv6_transport_len()
/kernel/linux/linux-5.10/net/bridge/
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()
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()
/kernel/linux/linux-5.10/net/6lowpan/
Dnhc.c93 const struct ipv6hdr *hdr, u8 **hc_ptr) in lowpan_nhc_check_compression()
109 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr, in lowpan_nhc_do_compression()
137 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in lowpan_nhc_do_compression()
154 struct ipv6hdr *hdr) in lowpan_nhc_do_uncompression()
164 ret = nhc->uncompress(skb, sizeof(struct ipv6hdr) + in lowpan_nhc_do_uncompression()
Dnhc.h99 const struct ipv6hdr *hdr, u8 **hc_ptr);
109 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr,
122 struct ipv6hdr *hdr);
/kernel/linux/linux-5.10/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()
Dcgroup_skb_sk_lookup_kern.c31 const struct ipv6hdr *ip6h, in set_tuple()
41 const struct ipv6hdr *ip6h, in is_allowed_peer_cg()
71 struct ipv6hdr ip6h; in ingress_lookup()
Dtest_cls_redirect.c279 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers()
346 static __always_inline struct ipv6hdr *
347 pkt_parse_ipv6(buf_t *pkt, struct ipv6hdr *scratch, uint8_t *proto, in pkt_parse_ipv6()
350 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6()
423 skb, payload_off + offsetof(struct ipv6hdr, hop_limit), in forward_with_gre()
437 skb, payload_off + offsetof(struct ipv6hdr, hop_limit), in forward_with_gre()
624 case sizeof(struct ipv6hdr): { in fill_tuple()
625 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple()
659 iphlen = sizeof(struct ipv6hdr); in classify_tcp()
780 struct ipv6hdr _ipv6; in process_icmpv6()
[all …]
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()
289 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) 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()
388 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct ipv6hdr))) in decap_v6()
463 struct ipv6hdr *ip6h; in send_icmp6_reply()
468 + sizeof(struct ipv6hdr) + sizeof(struct icmp6hdr) > data_end) in send_icmp6_reply()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c121 struct ipv6hdr *ip6h; in rmnet_map_ipv6_dl_csum_trailer()
125 ip6h = (struct ipv6hdr *)(skb->data); in rmnet_map_ipv6_dl_csum_trailer()
127 txporthdr = skb->data + sizeof(struct ipv6hdr); in rmnet_map_ipv6_dl_csum_trailer()
225 struct ipv6hdr *ip6h = (struct ipv6hdr *)ip6hdr; in rmnet_map_complement_ipv6_txporthdr_csum_field()
229 txphdr = ip6hdr + sizeof(struct ipv6hdr); in rmnet_map_complement_ipv6_txporthdr_csum_field()
242 struct ipv6hdr *ip6h = (struct ipv6hdr *)ip6hdr; in rmnet_map_ipv6_ul_csum_header()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireguard/selftest/
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()

12345678910>>...13