Home
last modified time | relevance | path

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

12345678910>>...13

/linux/net/ipv6/netfilter/
H A 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...]
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()
H A Dnft_fib_ipv6.c25 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) in nft_fib_v6_skip_icmpv6()
163 struct ipv6hdr *iph, _iph; in nft_fib6_eval()
/linux/include/net/
H A 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/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()
/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.h84 * @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);
/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 Dip6_offload.c111 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 *)(sk in ipv6_gro_complete()
[all...]
H A Dtcpv6_offload.c21 const struct ipv6hdr *hdr; in tcp6_check_fraglist_gro()
76 const struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + offset); in tcp6_gro_complete()
121 const struct ipv6hdr *iph; in __tcpv6_gso_segment_list_csum()
124 struct ipv6hdr *iph2; in __tcpv6_gso_segment_list_csum()
181 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment()
H A Dah6.c146 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
196 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {} in ipv6_rearrange_destopt()
208 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr()
238 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options()
241 struct ipv6hdr *iph; in ipv6_clear_mutable_options()
289 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done()
293 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
328 struct ipv6hdr *top_iph; in ah6_output()
346 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
515 struct ipv6hdr *ip6 in ah6_input()
[all...]
H A 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()
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()
196 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in xfrm6_beet_gso_segment()
367 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
H A Dexthdrs.c235 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/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()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c38 struct ipv6hdr *ip6h = NULL; in rxe_icrc_hdr()
45 sizeof(struct iphdr) : sizeof(struct ipv6hdr)); in rxe_icrc_hdr()
50 sizeof(struct ipv6hdr) + in rxe_icrc_hdr()
68 ip6h = (struct ipv6hdr *)pshdr; in rxe_icrc_hdr()
/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/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/net/ipv6/ila/
H A 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/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()
287 sizeof(struct ipv6hdr)) - sizeof(*ns); in br_nd_send()
307 skb_put(reply, sizeof(struct ipv6hdr)); in br_nd_send()
311 memset(pip6, 0, sizeof(struct ipv6hdr)); in br_nd_send()
319 skb_pull(reply, sizeof(struct ipv6hdr)); in br_nd_send()
343 skb_push(reply, sizeof(struct ipv6hdr)); in br_nd_send()
408 struct ipv6hdr *iphdr; in br_do_suppress_nd()
/linux/tools/testing/selftests/bpf/progs/
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_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/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()

12345678910>>...13