| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_NPT.c | 80 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()
|
| H A D | nft_fib_ipv6.c | 25 struct ipv6hdr *iph) in nft_fib6_flowi_init() 60 struct ipv6hdr *iph) in __nft_fib6_eval_type() 132 struct ipv6hdr *iph, _iph; in nft_fib6_eval_type() 144 static bool nft_fib_v6_skip_icmpv6(const struct sk_buff *skb, u8 next, const struct ipv6hdr *iph) 163 struct ipv6hdr *iph, _iph; in nft_fib6_eval()
|
| /linux/include/net/ |
| H A D | inet_ecn.h | 126 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/samples/bpf/ |
| H A D | tcp_tos_reflect_kern.c | 26 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 D | sockex2_kern.c | 89 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 D | parse_varlen.c | 80 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 D | nhc.c | 42 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 D | nhc.h | 89 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 D | seg6_iptunnel.c | 40 head = sizeof(struct ipv6hdr); in seg6_lwt_headroom() 111 struct ipv6hdr *inner_hdr) in seg6_make_flowlabel() 133 struct ipv6hdr *hdr, *inner_hdr; in __seg6_do_srh_encap() 195 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in __seg6_do_srh_encap() 218 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap_red() 240 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red() 282 isrh = (void *)hdr + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red() 322 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_encap_red() 332 struct ipv6hdr *hdr, *oldhdr; in __seg6_do_srh_inline() 344 skb_pull(skb, sizeof(struct ipv6hdr)); in __seg6_do_srh_inline() [all …]
|
| H A D | rpl_iptunnel.c | 132 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 D | ip6_offload.c | 111 struct ipv6hdr *ipv6h; in ipv6_gso_segment() 165 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment() 200 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len() 228 struct ipv6hdr *iph; in ipv6_gro_receive() 267 const struct ipv6hdr *iph2; in ipv6_gro_receive() 273 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive() 290 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive() 292 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive() 343 struct ipv6hdr *iph; in ipv6_gro_complete() 364 iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete() [all …]
|
| H A D | tcpv6_offload.c | 21 const struct ipv6hdr *hdr; in tcp6_check_fraglist_gro() 75 const struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + offset); in tcp6_gro_complete() 120 const struct ipv6hdr *iph; in __tcpv6_gso_segment_list_csum() 123 struct ipv6hdr *iph2; in __tcpv6_gso_segment_list_csum() 181 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment()
|
| H A D | esp6_offload.c | 32 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 D | exthdrs.c | 235 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() 589 sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv() 591 if (pskb_expand_head(skb, sizeof(struct ipv6hdr) + ((chdr->hdrlen + 1) << 3), 0, in ipv6_rpl_srh_rcv() 601 skb_push(skb, ((chdr->hdrlen + 1) << 3) + sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv() 604 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv() 606 memmove(ipv6_hdr(skb), oldhdr, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv() 609 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv() [all …]
|
| /linux/lib/tests/ |
| H A D | blackhole_dev_kunit.c | 29 struct ipv6hdr *ip6h; in test_blackholedev() 52 ip6h = (struct ipv6hdr *)skb_push(skb, sizeof(struct ipv6hdr)); in test_blackholedev()
|
| /linux/tools/testing/selftests/net/ |
| H A D | nat6to4.bpf.c | 55 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/net/ipv6/ila/ |
| H A D | ila_common.c | 35 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/tools/testing/selftests/bpf/progs/ |
| H A D | test_cls_redirect.c | 281 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 D | cgroup_skb_sk_lookup_kern.c | 30 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 D | xdpwall.c | 97 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 D | test_tcpbpf_kern.c | 34 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 D | test_pkt_access.c | 91 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()
|
| H A D | test_xdp_noinline.c | 221 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 …]
|
| /linux/drivers/net/wireguard/selftest/ |
| H A D | ratelimiter.c | 34 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/include/linux/ |
| H A D | netfilter_ipv6.h | 51 u32 (*cookie_init_sequence)(const struct ipv6hdr *iph, 53 int (*cookie_v6_check)(const struct ipv6hdr *iph, 164 static inline u32 nf_ipv6_cookie_init_sequence(const struct ipv6hdr *iph, in nf_ipv6_cookie_init_sequence() 181 static inline int nf_cookie_v6_check(const struct ipv6hdr *iph, in nf_cookie_v6_check()
|