Home
last modified time | relevance | path

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

12345678910>>...15

/linux/net/ipv6/netfilter/ !
H A Dnf_reject_ipv6.c15 static struct ipv6hdr *
30 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_reject_v6_csum_ok()
55 struct ipv6hdr *hdr; in nf_reject_ip6hdr_validate()
58 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in nf_reject_ip6hdr_validate()
66 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) in nf_reject_ip6hdr_validate()
81 struct ipv6hdr *nip6h; in nf_reject_skb_v6_tcp_reset()
90 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nf_reject_skb_v6_tcp_reset()
101 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nf_reject_skb_v6_tcp_reset()
109 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_skb_is_icmp6_unreach()
139 struct ipv6hdr *nip6h; 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()
/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()
130 ipv6_payload_len(const struct sk_buff *skb, const struct ipv6hdr *ip6) in ipv6_payload_len()
136 skb->len - skb_network_offset(skb) - sizeof(struct ipv6hdr); in ipv6_payload_len()
146 static inline void ipv6_set_payload_len(struct ipv6hdr *ip6, unsigned int len) in ipv6_set_payload_len()
/linux/include/net/ !
H A Dinet_ecn.h140 struct ipv6hdr;
148 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ce()
164 static inline int IP6_ECN_set_ect1(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ect1()
180 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp()
196 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ce()
214 if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr))) in skb_get_dsfield()
232 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ect1()
319 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.h89 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 Dah6.c51 struct ipv6hdr *top_iph, int extlen) in ah6_save_hdrs()
64 static inline void ah6_restore_hdrs(struct ipv6hdr *top_iph, in ah6_restore_hdrs()
174 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
224 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {} in ipv6_rearrange_destopt()
236 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr()
266 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options()
269 struct ipv6hdr *iph; in ipv6_clear_mutable_options()
317 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done()
321 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
350 struct ipv6hdr *top_iph; in ah6_output()
[all …]
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 Dseg6_iptunnel.c40 head = sizeof(struct ipv6hdr); in seg6_lwt_headroom()
112 struct ipv6hdr *inner_hdr) in seg6_make_flowlabel()
134 struct ipv6hdr *hdr, *inner_hdr; in __seg6_do_srh_encap()
196 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in __seg6_do_srh_encap()
219 struct ipv6hdr *hdr, *inner_hdr; in seg6_do_srh_encap_red()
241 tot_len = red_hdrlen + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
283 isrh = (void *)hdr + sizeof(struct ipv6hdr); in seg6_do_srh_encap_red()
323 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_encap_red()
333 struct ipv6hdr *hdr, *oldhdr; in __seg6_do_srh_inline()
345 skb_pull(skb, sizeof(struct ipv6hdr)); in __seg6_do_srh_inline()
[all …]
H A Dip6_offload.c95 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
146 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
181 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
209 struct ipv6hdr *iph; in ipv6_gro_receive()
248 const struct ipv6hdr *iph2; in ipv6_gro_receive()
254 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive()
271 if (unlikely(nlen > sizeof(struct ipv6hdr))) { in ipv6_gro_receive()
273 nlen - sizeof(struct ipv6hdr))) in ipv6_gro_receive()
334 struct ipv6hdr *iph; in ipv6_gro_complete()
342 iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
H A Dtcpv6_offload.c21 const struct ipv6hdr *hdr; in tcp6_check_fraglist_gro()
73 const struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + offset); in tcp6_gro_complete()
118 const struct ipv6hdr *iph; in __tcpv6_gso_segment_list_csum()
121 struct ipv6hdr *iph2; in __tcpv6_gso_segment_list_csum()
179 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment()
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 ipv6_set_payload_len(ipv6_hdr(skb), skb->len - sizeof(struct ipv6hdr)); in __ip6_local_out()
129 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()
198 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in xfrm6_beet_gso_segment()
369 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
H A Dexthdrs.c235 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
454 skb_push(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
478 skb_pull(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
493 struct ipv6hdr *oldhdr; in ipv6_rpl_srh_rcv()
594 sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
596 if (pskb_expand_head(skb, sizeof(struct ipv6hdr) + ((chdr->hdrlen + 1) << 3), 0, in ipv6_rpl_srh_rcv()
606 skb_push(skb, ((chdr->hdrlen + 1) << 3) + sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
609 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
611 memmove(ipv6_hdr(skb), oldhdr, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
614 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
[all …]
/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()
285 sizeof(struct ipv6hdr)); in br_nd_send()
289 sizeof(struct ipv6hdr)) - sizeof(*ns); in br_nd_send()
311 skb_put(reply, sizeof(struct ipv6hdr)); in br_nd_send()
315 memset(pip6, 0, sizeof(struct ipv6hdr)); in br_nd_send()
323 skb_pull(reply, sizeof(struct ipv6hdr)); in br_nd_send()
347 skb_push(reply, sizeof(struct ipv6hdr)); in br_nd_send()
412 struct ipv6hdr *iphdr; in br_do_suppress_nd()
/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/tools/testing/selftests/bpf/progs/ !
H A Dtest_cls_redirect.c281 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers()
348 static __always_inline struct ipv6hdr *
349 pkt_parse_ipv6(buf_t *pkt, struct ipv6hdr *scratch, uint8_t *proto, in pkt_parse_ipv6()
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()
788 struct ipv6hdr _ipv6; in process_icmpv6()
[all …]
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 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 Dtest_xdp_noinline.c221 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/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/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/net/netfilter/ !
H A Dnf_flow_table_ip.c167 struct ipv6hdr *ip6h; in nf_flow_tuple_encap()
204 ip6h = (struct ipv6hdr *)(skb_network_header(skb) + offset); in nf_flow_tuple_encap()
350 struct ipv6hdr *ip6h, _ip6h; in nf_flow_ip6_tunnel_proto()
651 struct ipv6hdr *ip6h = (struct ipv6hdr *)skb_network_header(skb); in nf_flow_tunnel_ip6ip6_push()
713 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in nf_flow_tunnel_ip6ip6_push()
840 struct ipv6hdr *ip6h) in nf_flow_nat_ipv6_tcp()
864 static void nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, in nf_flow_nat_ipv6_l4proto()
879 struct sk_buff *skb, struct ipv6hdr *ip6h, in nf_flow_snat_ipv6()
902 struct sk_buff *skb, struct ipv6hdr *ip6h, in nf_flow_dnat_ipv6()
927 struct ipv6hdr *ip6h) in nf_flow_nat_ipv6()
[all …]

12345678910>>...15