Home
last modified time | relevance | path

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

1234567

/net/ipv6/netfilter/
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 …]
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()
Dnft_fib_ipv6.c25 struct ipv6hdr *iph) in nft_fib6_flowi_init()
58 struct ipv6hdr *iph) in __nft_fib6_eval_type()
129 struct ipv6hdr *iph, _iph; in nft_fib6_eval_type()
141 static bool nft_fib_v6_skip_icmpv6(const struct sk_buff *skb, u8 next, const struct ipv6hdr *iph) in nft_fib_v6_skip_icmpv6()
159 struct ipv6hdr *iph, _iph; in nft_fib6_eval()
Dnf_conntrack_reasm.c129 static inline u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn()
146 const struct ipv6hdr *hdr, int iif) in fq_find()
330 sizeof(struct ipv6hdr) + fq->q.len - in nf_ct_frag6_reasm()
354 IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
392 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr()
393 int start = netoff + sizeof(struct ipv6hdr); in find_prev_fhdr()
444 struct ipv6hdr *hdr; in nf_ct_frag6_gather()
Dnf_socket_ipv6.c28 struct ipv6hdr *ipv6_var) in extract_icmp6_fields()
30 const struct ipv6hdr *inside_iph; in extract_icmp6_fields()
102 struct ipv6hdr *iph = ipv6_hdr(skb), ipv6_var; in nf_sk_lookup_slow_v6()
/net/ipv6/
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()
Dip6_offload.c78 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
127 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
162 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
191 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()
326 struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
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()
192 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_encap()
203 struct ipv6hdr *hdr, *oldhdr; in seg6_do_srh_inline()
215 skb_pull(skb, sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
217 sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
219 skb_push(skb, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
246 hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh_inline()
248 skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen); in seg6_do_srh_inline()
[all …]
Dah6.c149 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 *ip6h; in ah6_input()
[all …]
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()
351 len = skb->len - sizeof(struct ipv6hdr); in esp6_xmit()
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()
Dexthdrs.c234 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
448 skb_push(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
474 skb_pull(skb, sizeof(struct ipv6hdr)); in ipv6_srh_rcv()
489 struct ipv6hdr *oldhdr; in ipv6_rpl_srh_rcv()
611 sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3)); in ipv6_rpl_srh_rcv()
613 if (pskb_expand_head(skb, sizeof(struct ipv6hdr) + ((chdr->hdrlen + 1) << 3), 0, in ipv6_rpl_srh_rcv()
623 skb_push(skb, ((chdr->hdrlen + 1) << 3) + sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
626 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
628 memmove(ipv6_hdr(skb), oldhdr, sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
631 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in ipv6_rpl_srh_rcv()
[all …]
Ddatagram.c323 serr->addr_offset = (u8 *)&(((struct ipv6hdr *)(icmph + 1))->daddr) - in ipv6_icmp_error()
342 struct ipv6hdr *iph; in ipv6_local_error()
348 skb = alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC); in ipv6_local_error()
354 skb_put(skb, sizeof(struct ipv6hdr)); in ipv6_local_error()
381 struct ipv6hdr *iph; in ipv6_local_rxpmtu()
388 skb = alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC); in ipv6_local_rxpmtu()
392 skb_put(skb, sizeof(struct ipv6hdr)); in ipv6_local_rxpmtu()
486 const struct ipv6hdr *ip6h = container_of((struct in6_addr *)(nh + serr->addr_offset), in ipv6_recv_error()
487 struct ipv6hdr, daddr); in ipv6_recv_error()
632 __be32 flowinfo = ip6_flowinfo((struct ipv6hdr *)nh); in ip6_datagram_recv_specific_ctl()
[all …]
Dxfrm6_input.c25 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr); in xfrm6_rcv_spi()
55 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in xfrm6_transport_finish()
81 struct ipv6hdr *ip6h; in xfrm6_udp_encap_rcv()
83 int ip6hlen = sizeof(struct ipv6hdr); in xfrm6_udp_encap_rcv()
Dip6_input.c151 const struct ipv6hdr *hdr; in ip6_rcv_core()
252 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ip6_rcv_core()
258 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) { in ip6_rcv_core()
263 if (pskb_trim_rcsum(skb, pkt_len + sizeof(struct ipv6hdr))) { in ip6_rcv_core()
390 const struct ipv6hdr *hdr; in ip6_protocol_deliver_rcu()
484 const struct ipv6hdr *hdr; in ip6_mc_input()
Dip6_tunnel.c401 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)raw; in ip6_tnl_parse_tlv_enc_lim()
468 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6_tnl_err()
668 if (rel_msg && pskb_may_pull(skb, offset + sizeof(struct ipv6hdr))) { in ip6ip6_err()
711 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate()
723 const struct ipv6hdr *ipv6h, in ip6ip6_dscp_ecn_decapsulate()
733 const struct ipv6hdr *ipv6h, in mplsip6_dscp_ecn_decapsulate()
797 const struct ipv6hdr *ipv6h, in __ip6_tnl_rcv()
801 const struct ipv6hdr *ipv6h; in __ip6_tnl_rcv()
856 ipv6h = (struct ipv6hdr *)(skb->head + nh); in __ip6_tnl_rcv()
898 const struct ipv6hdr *ipv6h, in ip6_tnl_rcv()
[all …]
/net/bridge/
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()
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()
235 skb->transport_header = skb->network_header + sizeof(struct ipv6hdr); in br_nf_pre_routing_ipv6()
/net/6lowpan/
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()
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);
Diphc.c504 static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_ecn()
514 static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_dscp()
526 static inline void lowpan_iphc_tf_set_lbl(struct ipv6hdr *hdr, const u8 *lbl) in lowpan_iphc_tf_set_lbl()
545 static int lowpan_iphc_tf_decompress(struct sk_buff *skb, struct ipv6hdr *hdr, in lowpan_iphc_tf_decompress()
615 struct ipv6hdr hdr = {}; in lowpan_header_decompress()
755 sizeof(struct ipv6hdr)); in lowpan_header_decompress()
991 static inline u8 lowpan_iphc_get_tc(const struct ipv6hdr *hdr) in lowpan_iphc_get_tc()
1008 static inline bool lowpan_iphc_is_flow_lbl_zero(const struct ipv6hdr *hdr) in lowpan_iphc_is_flow_lbl_zero()
1017 static u8 lowpan_iphc_tf_compress(u8 **hc_ptr, const struct ipv6hdr *hdr) in lowpan_iphc_tf_compress()
1135 struct ipv6hdr *hdr; in lowpan_header_compress()
[all …]
/net/ipv6/ila/
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()
/net/netfilter/
Dnf_flow_table_ip.c412 struct ipv6hdr *ip6h) in nf_flow_nat_ipv6_tcp()
436 static void nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, in nf_flow_nat_ipv6_l4proto()
451 struct sk_buff *skb, struct ipv6hdr *ip6h, in nf_flow_snat_ipv6()
474 struct sk_buff *skb, struct ipv6hdr *ip6h, in nf_flow_dnat_ipv6()
499 struct ipv6hdr *ip6h) in nf_flow_nat_ipv6()
518 struct ipv6hdr *ip6h; in nf_flow_tuple_ipv6()
525 ip6h = (struct ipv6hdr *)(skb_network_header(skb) + offset); in nf_flow_tuple_ipv6()
544 ip6h = (struct ipv6hdr *)(skb_network_header(skb) + offset); in nf_flow_tuple_ipv6()
572 struct ipv6hdr *ip6h; in nf_flow_offload_ipv6_hook()
594 ip6h = (struct ipv6hdr *)(skb_network_header(skb) + offset); in nf_flow_offload_ipv6_hook()
/net/batman-adv/
Dgateway_client.c567 struct ipv6hdr *ipv6hdr; in batadv_gw_dhcp_recipient_get() local
607 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
610 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
611 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
614 if (ipv6hdr->nexthdr != IPPROTO_UDP) in batadv_gw_dhcp_recipient_get()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c224 const struct ipv6hdr *hdr; in nf_ct_br_ipv6_check()
232 len = ntohs(hdr->payload_len) + sizeof(struct ipv6hdr) + nhoff; in nf_ct_br_ipv6_check()
269 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in nf_ct_bridge_pre()
272 len = sizeof(struct ipv6hdr) + ntohs(ipv6_hdr(skb)->payload_len); in nf_ct_bridge_pre()
410 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in nf_ct_bridge_confirm()

1234567