/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | nf_reject_ipv6.c | 17 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...] |
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()
|
/kernel/linux/linux-5.10/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 | nf_reject_ipv6.c | 19 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() 152 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_send_reset6() 153 struct ipv6hdr *ip6h; in nf_send_reset6() 194 nskb = alloc_skb(hh_len + 15 + dst->header_len + sizeof(struct ipv6hdr) in nf_send_reset6() 243 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_csum_ok()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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() 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...] |
H A D | rpl_iptunnel.c | 131 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()
|
H A D | ip6_offload.c | 79 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 *)(sk in ipv6_gro_complete() [all...] |
H A D | ah6.c | 149 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 *ip6 in ah6_input() [all...] |
H A D | output_core.c | 37 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()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | rpl_iptunnel.c | 131 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()
|
H A D | seg6_iptunnel.c | 38 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) in seg6_do_srh_inline() [all...] |
H A D | ah6.c | 149 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 *ip6 in ah6_input() [all...] |
H A D | ip6_offload.c | 77 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 *)(sk in ipv6_gro_complete() [all...] |
H A D | output_core.c | 43 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()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | inet_ecn.h | 128 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-6.6/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 | 84 * @hdr: ipv6hdr to check the nexthdr value 89 const struct ipv6hdr *hdr, u8 **hc_ptr); 95 * @hdr: ipv6hdr to set the nexthdr value 99 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr, 108 * @hdr: ipv6hdr for setting nexthdr value. 112 struct ipv6hdr *hdr);
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
H A D | rxe_icrc.c | 15 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/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
H A D | nft_reject_bridge.c | 167 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/net/6lowpan/ |
H A D | nhc.c | 93 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_btf_skc_cls_ingress.c | 27 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_btf_skc_cls_ingress.c | 27 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()
|