Home
last modified time | relevance | path

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

12345678910>>...13

/linux/net/ipv6/netfilter/
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()
68 struct ipv6hdr *nip6h; in nf_reject_skb_v6_tcp_reset()
100 struct ipv6hdr *nip6h; in nf_reject_skb_v6_unreach()
139 nskb->len - sizeof(struct ipv6hdr), in nf_reject_skb_v6_unreach()
142 nskb->len - sizeof(struct ipv6hdr), in nf_reject_skb_v6_unreach()
201 struct ipv6hdr *ip6h; in nf_reject_ip6hdr_put()
206 skb_put(nskb, sizeof(struct ipv6hdr)); in nf_reject_ip6hdr_put()
287 struct ipv6hdr *ip6h; in nf_send_reset6()
[all …]
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()
A Dnft_fib_ipv6.c25 struct ipv6hdr *iph) in nft_fib6_flowi_init()
55 struct ipv6hdr *iph) in __nft_fib6_eval_type()
126 struct ipv6hdr *iph, _iph; in nft_fib6_eval_type()
138 static bool nft_fib_v6_skip_icmpv6(const struct sk_buff *skb, u8 next, const struct ipv6hdr *iph) in nft_fib_v6_skip_icmpv6()
156 struct ipv6hdr *iph, _iph; in nft_fib6_eval()
/linux/include/net/
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/
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/ipv6/
A 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()
A Dip6_offload.c78 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
125 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
160 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
189 struct ipv6hdr *iph; in ipv6_gro_receive()
235 const struct ipv6hdr *iph2; in ipv6_gro_receive()
241 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive()
258 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
260 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
324 struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
A Dah6.c149 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()
650 struct ipv6hdr *iph = (struct ipv6hdr *)skb->data; in ah6_err()
[all …]
A Dseg6_iptunnel.c39 head = sizeof(struct ipv6hdr); in seg6_lwt_headroom()
109 struct ipv6hdr *inner_hdr) in seg6_make_flowlabel()
130 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap()
201 struct ipv6hdr *hdr, *oldhdr; in seg6_do_srh_inline()
213 skb_pull(skb, sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
215 sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
217 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
244 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
305 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh()
306 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in seg6_do_srh()
[all …]
A 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()
345 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
A 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()
/linux/include/linux/
A Dipv6.h97 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) in ipv6_hdr()
99 return (struct ipv6hdr *)skb_network_header(skb); in ipv6_hdr()
102 static inline struct ipv6hdr *inner_ipv6_hdr(const struct sk_buff *skb) in inner_ipv6_hdr()
104 return (struct ipv6hdr *)skb_inner_network_header(skb); in inner_ipv6_hdr()
107 static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) in ipipv6_hdr()
109 return (struct ipv6hdr *)skb_transport_header(skb); in ipipv6_hdr()
114 return ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr) - in ipv6_transport_len()
/linux/drivers/net/ethernet/qualcomm/rmnet/
A Drmnet_map_data.c112 struct ipv6hdr *ip6h = (struct ipv6hdr *)skb->data; in rmnet_map_ipv6_dl_csum_trailer()
201 rmnet_map_complement_ipv6_txporthdr_csum_field(struct ipv6hdr *ip6h) in rmnet_map_complement_ipv6_txporthdr_csum_field()
215 rmnet_map_ipv6_ul_csum_header(struct ipv6hdr *ipv6hdr, in rmnet_map_ipv6_ul_csum_header() argument
222 if (ipv6hdr->nexthdr == IPPROTO_UDP) in rmnet_map_ipv6_ul_csum_header()
231 rmnet_map_complement_ipv6_txporthdr_csum_field(ipv6hdr); in rmnet_map_ipv6_ul_csum_header()
267 u16 ip_len = sizeof(struct ipv6hdr); in rmnet_map_v5_checksum_uplink_packet()
269 proto = ((struct ipv6hdr *)iph)->nexthdr; in rmnet_map_v5_checksum_uplink_packet()
/linux/net/bridge/
A 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()
A 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()
234 skb->transport_header = skb->network_header + sizeof(struct ipv6hdr); in br_nf_pre_routing_ipv6()
/linux/net/6lowpan/
A 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()
A 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);
/linux/tools/testing/selftests/bpf/progs/
A Dtest_cls_redirect.c280 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers()
347 static __always_inline struct ipv6hdr *
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()
788 const struct ipv6hdr *ipv6 = in process_icmpv6()
897 struct ipv6hdr _ipv6; in process_ipv6()
[all …]
A 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()
A 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()
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()
463 struct ipv6hdr *ip6h; in send_icmp6_reply()
472 off += sizeof(struct ipv6hdr); in send_icmp6_reply()
488 struct ipv6hdr *ip6h; in parse_icmpv6()
633 struct ipv6hdr *ip6h; in process_l3_headers_v6()
[all …]
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()
A Dcgroup_skb_sk_lookup_kern.c30 const struct ipv6hdr *ip6h, in set_tuple()
40 const struct ipv6hdr *ip6h, in is_allowed_peer_cg()
70 struct ipv6hdr ip6h; in ingress_lookup()
/linux/net/ipv6/ila/
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/lib/
A 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/drivers/infiniband/sw/rxe/
A 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()

Completed in 45 milliseconds

12345678910>>...13