Home
last modified time | relevance | path

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

/linux-4.4.14/net/ipv6/netfilter/
Dnf_reject_ipv6.c23 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6_tcphdr_get()
67 struct ipv6hdr *nf_reject_ip6hdr_put(struct sk_buff *nskb, in nf_reject_ip6hdr_put()
71 struct ipv6hdr *ip6h; in nf_reject_ip6hdr_put()
72 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6hdr_put()
76 skb_put(nskb, sizeof(struct ipv6hdr)); in nf_reject_ip6hdr_put()
139 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_send_reset6()
140 struct ipv6hdr *ip6h; in nf_send_reset6()
171 nskb = alloc_skb(hh_len + 15 + dst->header_len + sizeof(struct ipv6hdr) in nf_send_reset6()
215 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_csum_ok()
Dnf_nat_l3proto_ipv6.c83 struct ipv6hdr *ipv6h; in nf_nat_ipv6_manip_pkt()
116 const struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + iphdroff); in nf_nat_ipv6_csum_update()
134 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in nf_nat_ipv6_csum_recalc()
204 struct ipv6hdr ip6; in nf_nat_icmpv6_reply_translation()
245 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in nf_nat_icmpv6_reply_translation()
301 hdrlen = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), in nf_nat_ipv6_fn()
391 if (skb->len < sizeof(struct ipv6hdr)) in nf_nat_ipv6_out()
430 if (skb->len < sizeof(struct ipv6hdr)) in nf_nat_ipv6_local_fn()
Dip6t_SYNPROXY.c22 static struct ipv6hdr *
26 struct ipv6hdr *iph; in synproxy_build_ip()
29 iph = (struct ipv6hdr *)skb_put(skb, sizeof(*iph)); in synproxy_build_ip()
43 struct ipv6hdr *niph, struct tcphdr *nth, in synproxy_send_tcp()
92 struct ipv6hdr *iph, *niph; in synproxy_send_client_synack()
134 struct ipv6hdr *iph, *niph; in synproxy_send_server_syn()
179 struct ipv6hdr *iph, *niph; in synproxy_send_server_ack()
217 struct ipv6hdr *iph, *niph; in synproxy_send_client_ack()
346 thoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_synproxy_hook()
Dnf_conntrack_l3proto_ipv6.c43 ap = skb_header_pointer(skb, nhoff + offsetof(struct ipv6hdr, saddr), in ipv6_pkt_to_tuple()
73 unsigned int extoff = nhoff + sizeof(struct ipv6hdr); in ipv6_get_l4proto()
78 if (skb_copy_bits(skb, nhoff + offsetof(struct ipv6hdr, nexthdr), in ipv6_get_l4proto()
124 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ipv6_helper()
148 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in ipv6_confirm()
180 if (skb->len < sizeof(struct ipv6hdr)) { in ipv6_conntrack_local()
Dnf_dup_ipv6.c25 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_dup_ipv6_route()
66 struct ipv6hdr *iph = ipv6_hdr(skb); in nf_dup_ipv6()
Dnf_log_ipv6.c46 struct ipv6hdr _ip6h; in dump_ipv6_packet()
47 const struct ipv6hdr *ih; in dump_ipv6_packet()
68 ntohs(ih->payload_len) + sizeof(struct ipv6hdr), in dump_ipv6_packet()
74 ptr = ip6hoff + sizeof(struct ipv6hdr); in dump_ipv6_packet()
Dip6t_rpfilter.c33 struct ipv6hdr *iph = ipv6_hdr(skb); in rpfilter_lookup_reverse6()
85 struct ipv6hdr *iph; in rpfilter_mt()
Dnf_conntrack_reasm.c151 static inline u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn()
397 sizeof(struct ipv6hdr) + fq->q.len - in nf_ct_frag6_reasm()
466 IP6CB(head)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
522 u8 prev_nhoff = netoff + offsetof(struct ipv6hdr, nexthdr); in find_prev_fhdr()
523 int start = netoff + sizeof(struct ipv6hdr); in find_prev_fhdr()
573 struct ipv6hdr *hdr; in nf_ct_frag6_gather()
Dip6t_NPT.c90 offsetof(struct ipv6hdr, saddr)); in ip6t_snpt_tg()
103 offsetof(struct ipv6hdr, daddr)); in ip6t_dnpt_tg()
Dnf_tables_ipv6.c36 if (unlikely(skb->len < sizeof(struct ipv6hdr))) { in nft_ipv6_output()
Dip6t_ipv6header.c43 ptr = sizeof(struct ipv6hdr); in ipv6header_mt6()
Dnf_conntrack_proto_icmpv6.c161 + sizeof(struct ipv6hdr) in icmpv6_error_message()
Dip6_tables.c96 const struct ipv6hdr *ipv6 = ipv6_hdr(skb); in ip6_packet_match()
/linux-4.4.14/net/ipv6/
Dip6_offload.c61 struct ipv6hdr *ipv6h; in ipv6_gso_segment()
119 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
143 static int ipv6_exthdrs_len(struct ipv6hdr *iph, in ipv6_exthdrs_len()
172 struct ipv6hdr *iph; in ipv6_gro_receive()
217 const struct ipv6hdr *iph2; in ipv6_gro_receive()
223 iph2 = (struct ipv6hdr *)(p->data + off); in ipv6_gro_receive()
234 nlen - offsetof(struct ipv6hdr, nexthdr))) { in ipv6_gro_receive()
264 struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + nhoff); in ipv6_gro_complete()
Dxfrm6_mode_beet.c24 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_beet_make_header()
42 struct ipv6hdr *top_iph; in xfrm6_beet_output()
55 offsetof(struct ipv6hdr, nexthdr); in xfrm6_beet_output()
82 struct ipv6hdr *ip6h; in xfrm6_beet_input()
83 int size = sizeof(struct ipv6hdr); in xfrm6_beet_input()
Dxfrm6_mode_tunnel.c23 struct ipv6hdr *inner_iph = ipipv6_hdr(skb); in ipip6_ecn_decapsulate()
36 struct ipv6hdr *top_iph; in xfrm6_mode_tunnel_output()
41 offsetof(struct ipv6hdr, nexthdr); in xfrm6_mode_tunnel_output()
77 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in xfrm6_mode_tunnel_input()
Dah6.c160 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) in ipv6_rearrange_destopt()
213 static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *destopt) {} in ipv6_rearrange_destopt()
225 static void ipv6_rearrange_rthdr(struct ipv6hdr *iph, struct ipv6_rt_hdr *rthdr) in ipv6_rearrange_rthdr()
255 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) in ipv6_clear_mutable_options()
258 struct ipv6hdr *iph; in ipv6_clear_mutable_options()
305 struct ipv6hdr *top_iph = ipv6_hdr(skb); in ah6_output_done()
309 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output_done()
344 struct ipv6hdr *top_iph; in ah6_output()
362 extlen = skb_network_header_len(skb) - sizeof(struct ipv6hdr); in ah6_output()
526 struct ipv6hdr *ip6h; in ah6_input()
[all …]
Dip6_input.c67 const struct ipv6hdr *hdr; in ipv6_rcv()
155 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in ipv6_rcv()
161 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) { in ipv6_rcv()
166 if (pskb_trim_rcsum(skb, pkt_len + sizeof(struct ipv6hdr))) { in ipv6_rcv()
228 const struct ipv6hdr *hdr; in ip6_input_finish()
287 const struct ipv6hdr *hdr; in ip6_mc_input()
Dnetfilter.c23 const struct ipv6hdr *iph = ipv6_hdr(skb); in ip6_route_me_harder()
87 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_saveroute()
101 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_reroute()
135 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum()
169 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum_partial()
Doutput_core.c51 offsetof(struct ipv6hdr, saddr), in ipv6_proxy_select_ident()
81 u16 offset = sizeof(struct ipv6hdr); in ip6_find_1stfragopt()
145 len = skb->len - sizeof(struct ipv6hdr); in __ip6_local_out()
149 IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); in __ip6_local_out()
Dmcast_snoop.c28 const struct ipv6hdr *ip6h; in ipv6_mc_check_ip6hdr()
49 const struct ipv6hdr *ip6h; in ipv6_mc_check_exthdrs()
149 transport_len -= skb_transport_offset(skb) - sizeof(struct ipv6hdr); in __ipv6_mc_check_mld()
Ddatagram.c258 serr->addr_offset = (u8 *)&(((struct ipv6hdr *)(icmph + 1))->daddr) - in ipv6_icmp_error()
273 struct ipv6hdr *iph; in ipv6_local_error()
279 skb = alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC); in ipv6_local_error()
285 skb_put(skb, sizeof(struct ipv6hdr)); in ipv6_local_error()
311 struct ipv6hdr *iph; in ipv6_local_rxpmtu()
318 skb = alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC); in ipv6_local_rxpmtu()
322 skb_put(skb, sizeof(struct ipv6hdr)); in ipv6_local_rxpmtu()
423 const struct ipv6hdr *ip6h = container_of((struct in6_addr *)(nh + serr->addr_offset), in ipv6_recv_error()
424 struct ipv6hdr, daddr); in ipv6_recv_error()
570 __be32 flowinfo = ip6_flowinfo((struct ipv6hdr *)nh); in ip6_datagram_recv_specific_ctl()
[all …]
Dtcpv6_offload.c34 const struct ipv6hdr *iph = ipv6_hdr(skb); in tcp6_gro_complete()
53 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment()
Dxfrm6_mode_transport.c24 struct ipv6hdr *iph; in xfrm6_transport_output()
57 sizeof(struct ipv6hdr)); in xfrm6_transport_input()
Dexthdrs_core.c188 unsigned int start = skb_network_offset(skb) + sizeof(struct ipv6hdr); in ipv6_find_hdr()
197 struct ipv6hdr _ip6, *ip6; in ipv6_find_hdr()
204 start = *offset + sizeof(struct ipv6hdr); in ipv6_find_hdr()
Dmip6.c133 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_destopt_input()
152 struct ipv6hdr *iph; in mip6_destopt_output()
265 u16 offset = sizeof(struct ipv6hdr); in mip6_destopt_offset()
353 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_rthdr_input()
371 struct ipv6hdr *iph; in mip6_rthdr_output()
401 u16 offset = sizeof(struct ipv6hdr); in mip6_rthdr_offset()
Dipcomp6.c61 const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data; in ipcomp6_err()
158 x->props.header_len += sizeof(struct ipv6hdr); in ipcomp6_init_state()
Dila.c36 static inline __wsum get_csum_diff(struct ipv6hdr *ip6h, struct ila_params *p) in get_csum_diff()
48 struct ipv6hdr *ip6h = ipv6_hdr(skb); in update_ipv6_locator()
49 size_t nhoff = sizeof(struct ipv6hdr); in update_ipv6_locator()
Dicmp.c303 struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_addr_swap()
395 struct ipv6hdr *hdr = ipv6_hdr(skb); in icmp6_send()
516 len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr)); in icmp6_send()
642 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in icmpv6_notify()
645 nexthdr = ((struct ipv6hdr *)skb->data)->nexthdr; in icmpv6_notify()
648 inner_offset = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), in icmpv6_notify()
653 inner_offset = sizeof(struct ipv6hdr); in icmpv6_notify()
699 if (!pskb_may_pull(skb, sizeof(*hdr) + sizeof(struct ipv6hdr))) in icmpv6_rcv()
746 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in icmpv6_rcv()
Dip6_output.c164 struct ipv6hdr *hdr; in ip6_xmit()
178 head_room += sizeof(struct ipv6hdr) + LL_RESERVED_SPACE(dst->dev); in ip6_xmit()
201 skb_push(skb, sizeof(struct ipv6hdr)); in ip6_xmit()
282 struct ipv6hdr *hdr = ipv6_hdr(skb); in ip6_forward_proxy_check()
292 offset = sizeof(struct ipv6hdr); in ip6_forward_proxy_check()
381 struct ipv6hdr *hdr = ipv6_hdr(skb); in ip6_forward()
566 struct ipv6hdr *tmp_hdr; in ip6_fragment()
670 sizeof(struct ipv6hdr)); in ip6_fragment()
694 sizeof(struct ipv6hdr)); in ip6_fragment()
814 sizeof(struct ipv6hdr)); in ip6_fragment()
[all …]
Dip6_tunnel.c480 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *) raw; in ip6_tnl_parse_tlv_enc_lim()
542 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *) skb->data; in ip6_tnl_err()
747 if (rel_msg && pskb_may_pull(skb, offset + sizeof(struct ipv6hdr))) { in ip6ip6_err()
776 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate()
788 const struct ipv6hdr *ipv6h, in ip6ip6_dscp_ecn_decapsulate()
859 const struct ipv6hdr *ipv6h, in ip6_tnl_rcv()
863 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ip6_tnl_rcv()
974 ip6_tnl_addr_conflict(const struct ip6_tnl *t, const struct ipv6hdr *hdr) in ip6_tnl_addr_conflict()
1040 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ip6_tnl_xmit2()
1045 unsigned int max_headroom = sizeof(struct ipv6hdr); in ip6_tnl_xmit2()
[all …]
Dip6_gre.c372 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6gre_err()
392 ipv6h = (const struct ipv6hdr *)skb->data; in ip6gre_err()
449 const struct ipv6hdr *ipv6h; in ip6gre_rcv()
612 struct ipv6hdr *ipv6h; /* Our new IP header */ in ip6gre_xmit2()
629 ipv6h = (struct ipv6hdr *)skb->data; in ip6gre_xmit2()
755 skb->len - sizeof(struct ipv6hdr)); in ip6gre_xmit2()
812 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ip6gre_xmit_ipv6()
872 const struct ipv6hdr *hdr) in ip6gre_tnl_addr_conflict()
935 int addend = sizeof(struct ipv6hdr) + 4; in ip6gre_tnl_link_config()
1178 struct ipv6hdr *ipv6h = (struct ipv6hdr *)skb_push(skb, t->hlen); in ip6gre_header()
[all …]
Dexthdrs.c182 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao()
590 if (pkt_len > skb->len - sizeof(struct ipv6hdr)) { in ipv6_hop_jumbo()
596 if (pskb_trim_rcsum(skb, pkt_len + sizeof(struct ipv6hdr))) in ipv6_hop_jumbo()
628 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr) + 8) || in ipv6_parse_hopopts()
629 !pskb_may_pull(skb, (sizeof(struct ipv6hdr) + in ipv6_parse_hopopts()
639 opt->nhoff = sizeof(struct ipv6hdr); in ipv6_parse_hopopts()
Dsyncookies.c100 u32 __cookie_v6_init_sequence(const struct ipv6hdr *iph, in __cookie_v6_init_sequence()
119 const struct ipv6hdr *iph = ipv6_hdr(skb); in cookie_v6_init_sequence()
125 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, in __cookie_v6_check()
Dudp_offload.c67 const struct ipv6hdr *ipv6h; in udp6_ufo_fragment()
159 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in udp6_gro_complete()
Dtcp_ipv6.c271 tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()
323 const struct ipv6hdr *hdr = (const struct ipv6hdr *)skb->data; in tcp_v6_err()
595 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_md5_hash_skb()
637 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_inbound_md5_hash()
722 sizeof(struct ipv6hdr),
758 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len, in tcp_v6_send_response()
763 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + tot_len); in tcp_v6_send_response()
842 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset()
1316 static void tcp_v6_fill_cb(struct sk_buff *skb, const struct ipv6hdr *hdr, in tcp_v6_fill_cb()
1350 const struct ipv6hdr *hdr; in tcp_v6_rcv()
[all …]
Dxfrm6_mode_ro.c43 struct ipv6hdr *iph; in xfrm6_ro_output()
Desp6.c451 net_adj = sizeof(struct ipv6hdr); in esp6_get_mtu()
463 const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data; in esp6_err()
646 (sizeof(struct ipv6hdr) - sizeof(struct iphdr)); in esp6_init_state()
651 x->props.header_len += sizeof(struct ipv6hdr); in esp6_init_state()
Dip6_vti.c303 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vti6_rcv()
395 vti6_addr_conflict(const struct ip6_tnl *t, const struct ipv6hdr *hdr) in vti6_addr_conflict()
512 struct ipv6hdr *ipv6h; in vti6_tnl_xmit()
564 const struct ipv6hdr *iph = (const struct ipv6hdr *)skb->data; in vti6_err()
845 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct ipv6hdr); in vti6_dev_setup()
Dip6mr.c625 struct ipv6hdr *encap; in pim6_rcv()
648 encap = (struct ipv6hdr *)(skb_transport_header(skb) + in pim6_rcv()
733 dev->mtu = 1500 - sizeof(struct ipv6hdr) - 8; in reg_vif_setup()
848 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_destroy_unres()
1106 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_cache_resolve()
1142 skb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(*msg), GFP_ATOMIC); in ip6mr_cache_report()
1179 skb_put(skb, sizeof(struct ipv6hdr)); in ip6mr_cache_report()
1181 skb_copy_to_linear_data(skb, ipv6_hdr(pkt), sizeof(struct ipv6hdr)); in ip6mr_cache_report()
2001 struct ipv6hdr *ipv6h; in ip6mr_forward2()
2302 struct ipv6hdr *iph; in ip6mr_get_route()
[all …]
Dxfrm6_tunnel.c235 const struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_tunnel_rcv()
291 x->props.header_len = sizeof(struct ipv6hdr); in xfrm6_tunnel_init_state()
Dreassembly.c72 static u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn()
264 offsetof(struct ipv6hdr, payload_len)); in ip6_frag_queue()
420 sizeof(struct ipv6hdr) + fq->q.len - in ip6_frag_reasm()
525 const struct ipv6hdr *hdr = ipv6_hdr(skb); in ipv6_frag_rcv()
Dip6_udp_tunnel.c80 struct ipv6hdr *ip6h; in udp_tunnel6_xmit_skb()
Dxfrm6_input.c27 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr); in xfrm6_rcv_spi()
Dtunnel6.c105 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnel6_rcv()
Dxfrm6_policy.c123 const struct ipv6hdr *hdr = ipv6_hdr(skb); in _decode_session6()
132 nhoff = offsetof(struct ipv6hdr, nexthdr); in _decode_session6()
Dxfrm6_state.c158 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_extract_header()
Dxfrm6_output.c61 const struct ipv6hdr *hdr; in xfrm6_local_error()
Draw.c373 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data; in raw6_icmp_error()
618 struct ipv6hdr *iph; in rawv6_send_hdrinc()
Dndisc.c388 skb = alloc_skb(hlen + sizeof(struct ipv6hdr) + len + tlen, GFP_ATOMIC); in ndisc_alloc_skb()
398 skb_reserve(skb, hlen + sizeof(struct ipv6hdr)); in ndisc_alloc_skb()
414 struct ipv6hdr *hdr; in ip6_nd_hdr()
1565 IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(*msg) - optlen, in ndisc_send_redirect()
Droute.c1151 const struct ipv6hdr *iph = ipv6_hdr(skb); in ip6_route_input()
1341 const struct ipv6hdr *iph, u32 mtu) in __ip6_rt_update_pmtu()
1391 const struct ipv6hdr *iph = (struct ipv6hdr *) skb->data; in ip6_update_pmtu()
1495 const struct ipv6hdr *iph = (struct ipv6hdr *) skb->data; in ip6_redirect()
1516 const struct ipv6hdr *iph = ipv6_hdr(skb); in ip6_redirect_no_header()
1545 mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in ip6_default_advmss()
3303 skb_reserve(skb, MAX_HEADER + sizeof(struct ipv6hdr)); in inet6_rtm_getroute()
Dudp.c373 const struct ipv6hdr *iph = ipv6_hdr(skb); in __udp6_lib_lookup_skb()
542 const struct ipv6hdr *hdr = (const struct ipv6hdr *)skb->data; in __udp6_lib_err()
Dmcast.c1314 len = ntohs(ipv6_hdr(skb)->payload_len) + sizeof(struct ipv6hdr); in igmp6_event_query()
1532 struct ipv6hdr *hdr; in ip6_mc_hdr()
1538 skb_put(skb, sizeof(struct ipv6hdr)); in ip6_mc_hdr()
1606 struct ipv6hdr *pip6 = ipv6_hdr(skb); in mld_sendpack()
1955 full_len = sizeof(struct ipv6hdr) + payload_len; in igmp6_send()
Dsit.c491 if (!pskb_may_pull(skb, ihl + sizeof(struct ipv6hdr) + 8)) in ipip6_err_gen_icmpv6_unreach()
633 const struct ipv6hdr *ipv6h; in packet_is_spoofed()
811 const struct ipv6hdr *iph6 = ipv6_hdr(skb); in ipip6_tunnel_xmit()
Daf_inet6.c694 (ip6_flowinfo((struct ipv6hdr *) skb_network_header(skb)) && in ipv6_opt_accepted()
/linux-4.4.14/include/net/
Dinet_ecn.h112 struct ipv6hdr;
120 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ce()
135 static inline void IP6_ECN_clear(struct ipv6hdr *iph) in IP6_ECN_clear()
140 static inline void ipv6_copy_dscp(unsigned int dscp, struct ipv6hdr *inner) in ipv6_copy_dscp()
156 if (skb_network_header(skb) + sizeof(struct ipv6hdr) <= in INET_ECN_set_ce()
225 static inline int IP6_ECN_decapsulate(const struct ipv6hdr *oipv6h, in IP6_ECN_decapsulate()
Ddsfield.h21 static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h) in ipv6_get_dsfield()
43 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield()
D6lowpan.h73 #define LOWPAN_IPHC_MAX_HC_BUF_LEN (sizeof(struct ipv6hdr) + \
Dip6_checksum.h53 const struct ipv6hdr *iph = skb_gro_network_header(skb); in ip6_gro_compute_pseudo()
Dipv6.h720 const struct ipv6hdr *iph) in iph_to_flow_copy_v6addrs()
799 static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, in ip6_flow_hdr()
805 static inline __be32 ip6_flowinfo(const struct ipv6hdr *hdr) in ip6_flowinfo()
810 static inline __be32 ip6_flowlabel(const struct ipv6hdr *hdr) in ip6_flowlabel()
Ddst_metadata.h137 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in ipv6_tun_rx_dst()
Dip6_route.h38 #define IP6_MAX_MTU (0xFFFF + sizeof(struct ipv6hdr))
Dip_tunnels.h262 return ipv6_get_dsfield((const struct ipv6hdr *)iph); in ip_tunnel_get_dsfield()
Dip_vs.h88 struct ipv6hdr _iph; in ip_vs_fill_iph_skb_off()
89 const struct ipv6hdr *iph = skb_header_pointer( in ip_vs_fill_iph_skb_off()
Dtcp.h534 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th,
538 u32 __cookie_v6_init_sequence(const struct ipv6hdr *iph,
/linux-4.4.14/net/6lowpan/
Diphc.c350 static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_ecn()
360 static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf) in lowpan_iphc_tf_set_dscp()
372 static inline void lowpan_iphc_tf_set_lbl(struct ipv6hdr *hdr, const u8 *lbl) in lowpan_iphc_tf_set_lbl()
391 static int lowpan_iphc_tf_decompress(struct sk_buff *skb, struct ipv6hdr *hdr, in lowpan_iphc_tf_decompress()
461 struct ipv6hdr hdr = {}; in lowpan_header_decompress()
554 sizeof(struct ipv6hdr)); in lowpan_header_decompress()
617 static inline u8 lowpan_iphc_get_tc(const struct ipv6hdr *hdr) in lowpan_iphc_get_tc()
634 static inline bool lowpan_iphc_is_flow_lbl_zero(const struct ipv6hdr *hdr) in lowpan_iphc_is_flow_lbl_zero()
643 static u8 lowpan_iphc_tf_compress(u8 **hc_ptr, const struct ipv6hdr *hdr) in lowpan_iphc_tf_compress()
746 struct ipv6hdr *hdr; in lowpan_header_compress()
[all …]
Dnhc.c98 const struct ipv6hdr *hdr, u8 **hc_ptr) in lowpan_nhc_check_compression()
114 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr, in lowpan_nhc_do_compression()
142 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in lowpan_nhc_do_compression()
159 struct ipv6hdr *hdr) in lowpan_nhc_do_uncompression()
169 ret = nhc->uncompress(skb, sizeof(struct ipv6hdr) + in lowpan_nhc_do_uncompression()
Dnhc.h98 const struct ipv6hdr *hdr, u8 **hc_ptr);
108 int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr,
121 struct ipv6hdr *hdr);
Dnhc_udp.c98 sizeof(struct ipv6hdr)); in udp_uncompress()
/linux-4.4.14/include/linux/
Dipv6.h77 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb) in ipv6_hdr()
79 return (struct ipv6hdr *)skb_network_header(skb); in ipv6_hdr()
82 static inline struct ipv6hdr *inner_ipv6_hdr(const struct sk_buff *skb) in inner_ipv6_hdr()
84 return (struct ipv6hdr *)skb_inner_network_header(skb); in inner_ipv6_hdr()
87 static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) in ipipv6_hdr()
89 return (struct ipv6hdr *)skb_transport_header(skb); in ipipv6_hdr()
/linux-4.4.14/net/bridge/netfilter/
Dnft_reject_bridge.c153 struct ipv6hdr *nip6h; in nft_reject_br_send_v6_tcp_reset()
162 nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) + in nft_reject_br_send_v6_tcp_reset()
171 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nft_reject_br_send_v6_tcp_reset()
180 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_br_csum_ok()
208 struct ipv6hdr *nip6h; in nft_reject_br_send_v6_unreach()
244 nip6h->payload_len = htons(nskb->len - sizeof(struct ipv6hdr)); in nft_reject_br_send_v6_unreach()
248 nskb->len - sizeof(struct ipv6hdr), in nft_reject_br_send_v6_unreach()
251 nskb->len - sizeof(struct ipv6hdr), in nft_reject_br_send_v6_unreach()
Dnf_tables_bridge.c49 struct ipv6hdr *hdr; in nft_bridge_ip6hdr_validate()
52 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in nft_bridge_ip6hdr_validate()
60 if (pkt_len + sizeof(struct ipv6hdr) > skb->len) in nft_bridge_ip6hdr_validate()
Debt_ip6.c40 const struct ipv6hdr *ih6; in ebt_ip6_mt()
41 struct ipv6hdr _ip6h; in ebt_ip6_mt()
Debt_log.c117 const struct ipv6hdr *ih; in ebt_log_packet()
118 struct ipv6hdr _iph; in ebt_log_packet()
/linux-4.4.14/net/bridge/
Dbr_netfilter_ipv6.c82 if (pkt_len > skb->len - sizeof(struct ipv6hdr)) in br_nf_check_hbh_len()
85 pkt_len + sizeof(struct ipv6hdr))) in br_nf_check_hbh_len()
105 const struct ipv6hdr *hdr; in br_validate_ipv6()
108 u8 ip6h_len = sizeof(struct ipv6hdr); in br_validate_ipv6()
Dbr_multicast.c434 struct ipv6hdr *ip6h; in br_ip6_multicast_alloc_query()
1343 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in br_ip6_multicast_query()
/linux-4.4.14/samples/bpf/
Dsockex2_kern.c89 nhoff + offsetof(struct ipv6hdr, nexthdr)); in parse_ipv6()
91 nhoff + offsetof(struct ipv6hdr, saddr)); in parse_ipv6()
93 nhoff + offsetof(struct ipv6hdr, daddr)); in parse_ipv6()
94 nhoff += sizeof(struct ipv6hdr); in parse_ipv6()
Dsockex3_kern.c228 nhoff + offsetof(struct ipv6hdr, nexthdr)); in PROG()
230 nhoff + offsetof(struct ipv6hdr, saddr)); in PROG()
232 nhoff + offsetof(struct ipv6hdr, daddr)); in PROG()
233 nhoff += sizeof(struct ipv6hdr); in PROG()
/linux-4.4.14/drivers/staging/gdm724x/
Dgdm_lte.c181 static int icmp6_checksum(struct ipv6hdr *ipv6, u16 *ptr, int len) in icmp6_checksum()
238 struct ipv6hdr *ipv6_in; in gdm_lte_emulate_ndp()
239 struct ipv6hdr ipv6_out; in gdm_lte_emulate_ndp()
262 ipv6_in = (struct ipv6hdr *)(skb_in->data + mac_header_len); in gdm_lte_emulate_ndp()
268 sizeof(struct ipv6hdr)); in gdm_lte_emulate_ndp()
289 sizeof(struct ipv6hdr) + sizeof(struct icmp6hdr)); in gdm_lte_emulate_ndp()
300 memcpy(&ipv6_out, ipv6_in, sizeof(struct ipv6hdr)); in gdm_lte_emulate_ndp()
330 memcpy(skb_put(skb_out, sizeof(struct ipv6hdr)), &ipv6_out, in gdm_lte_emulate_ndp()
331 sizeof(struct ipv6hdr)); in gdm_lte_emulate_ndp()
353 struct ipv6hdr *ipv6; in gdm_lte_tx_nic_type()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c101 struct ipv6hdr *ipv6 = (struct ipv6hdr *)(skb->data + ETH_HLEN); in mlx5e_lro_update_hdr()
117 sizeof(struct ipv6hdr)); in mlx5e_lro_update_hdr()
140 sizeof(struct ipv6hdr)); in mlx5e_lro_update_hdr()
/linux-4.4.14/net/batman-adv/
Dgateway_client.c673 struct ipv6hdr *ipv6hdr; in batadv_gw_dhcp_recipient_get() local
713 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
716 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
717 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
720 if (ipv6hdr->nexthdr != IPPROTO_UDP) in batadv_gw_dhcp_recipient_get()
Dmulticast.c337 struct ipv6hdr *ip6hdr; in batadv_mcast_forw_mode_check_ipv6()
Dmain.c332 struct ipv6hdr ip6_hdr_tmp, *ip6_hdr; in batadv_skb_set_priority()
/linux-4.4.14/net/sched/
Dem_ipset.c71 if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr))) in em_ipset_match()
74 acpar.thoff = sizeof(struct ipv6hdr); in em_ipset_match()
Dact_csum.c156 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_icmp()
199 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_tcp()
274 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_udp()
420 struct ipv6hdr *ip6h; in tcf_csum_ipv6()
Dact_connmark.c54 if (skb->len < sizeof(struct ipv6hdr)) in tcf_connmark()
Dcls_rsvp.h143 struct ipv6hdr *nhptr; in rsvp_classify()
162 xprt = ((u8 *)nhptr) + sizeof(struct ipv6hdr); in rsvp_classify()
Dsch_dsmark.c212 if (skb_cow_head(skb, sizeof(struct ipv6hdr))) in dsmark_enqueue()
/linux-4.4.14/net/netfilter/
Dxt_DSCP.c55 if (!skb_make_writable(skb, sizeof(struct ipv6hdr))) in dscp_tg6()
100 struct ipv6hdr *iph = ipv6_hdr(skb); in tos_tg6()
Dxt_socket.c271 struct ipv6hdr *ipv6_var) in extract_icmp6_fields()
273 const struct ipv6hdr *inside_iph; in extract_icmp6_fields()
345 struct ipv6hdr *iph = ipv6_hdr(skb); in xt_socket_lookup_slow_v6()
367 struct ipv6hdr ipv6_var; in xt_socket_lookup_slow_v6()
Dxt_AUDIT.c98 struct ipv6hdr _ip6h; in audit_ip6()
99 const struct ipv6hdr *ih; in audit_ip6()
Dxt_length.c37 sizeof(struct ipv6hdr); in length_mt6()
Dxt_hl.c50 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in hl_mt6()
Dxt_HL.c71 struct ipv6hdr *ip6h; in hl_tg6()
Dxt_TCPOPTSTRIP.c102 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpoptstrip_tg6()
Dxt_HMARK.c169 struct ipv6hdr *ip6, _ip6; in hmark_pkt_set_htuple_ipv6()
175 ip6 = (struct ipv6hdr *) (skb->data + skb_network_offset(skb)); in hmark_pkt_set_htuple_ipv6()
Dxt_iprange.c72 const struct ipv6hdr *iph = ipv6_hdr(skb); in iprange_mt6()
Dnf_nat_helper.c69 htons(skb->len - sizeof(struct ipv6hdr)); in mangle_contents()
Dxt_TPROXY.c417 const struct ipv6hdr *iph = ipv6_hdr(skb); in tproxy_handle_time_wait6()
450 const struct ipv6hdr *iph = ipv6_hdr(skb); in tproxy_tg6_v1()
Dnf_tables_netdev.c55 struct ipv6hdr *ip6h, _ip6h; in __nft_netdev_set_pktinfo_ipv6()
Dxt_addrtype.c106 const struct ipv6hdr *iph = ipv6_hdr(skb); in addrtype_mt6()
Dxt_TCPMSS.c229 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpmss_tg6()
Dxt_connlimit.c340 const struct ipv6hdr *iph = ipv6_hdr(skb); in connlimit_mt()
Dxt_recent.c259 const struct ipv6hdr *iph = ipv6_hdr(skb); in recent_mt()
Dxt_hashlimit.c562 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, &frag_off); in hashlimit_init_dst()
/linux-4.4.14/include/net/netfilter/ipv6/
Dnf_reject.h14 struct ipv6hdr *nf_reject_ip6hdr_put(struct sk_buff *nskb,
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dsta_rx.c40 struct ipv6hdr *ipv6; in mwifiex_discard_gratuitous_arp()
56 sizeof(struct ipv6hdr)); in mwifiex_discard_gratuitous_arp()
/linux-4.4.14/drivers/net/ipvlan/
Dipvlan_core.c156 struct ipv6hdr *ip6h; in ipvlan_get_L3_hdr()
301 struct ipv6hdr *ip6h; in ipvlan_addr_lookup()
304 ip6h = (struct ipv6hdr *)lyr3h; in ipvlan_addr_lookup()
385 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in ipvlan_process_v6_outbound()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_xmit.c480 mtu = dst_mtu(&rt->dst) - sizeof(struct ipv6hdr); in __ip_vs_get_out_rt_v6()
661 struct ipv6hdr *iph = ipv6_hdr(skb); in ip_vs_bypass_xmit_v6()
840 if (!skb_make_writable(skb, sizeof(struct ipv6hdr))) in ip_vs_nat_xmit_v6()
889 struct ipv6hdr *old_ipv6h = NULL; in ip_vs_prepare_tunneled_skb()
1081 struct ipv6hdr *iph; /* Our new IP header */ in ip_vs_tunnel_xmit_v6()
1107 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct ipv6hdr); in ip_vs_tunnel_xmit_v6()
1122 skb_push(skb, sizeof(struct ipv6hdr)); in ip_vs_tunnel_xmit_v6()
Dip_vs_proto.c267 struct ipv6hdr _iph, *ih; in ip_vs_tcpudp_debug_packet_v6()
277 pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr), in ip_vs_tcpudp_debug_packet_v6()
Dip_vs_proto_sctp.c191 sctphoff = sizeof(struct ipv6hdr); in sctp_csum_check()
387 ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in set_sctp_state()
Dip_vs_proto_tcp.c314 tcphoff = sizeof(struct ipv6hdr); in tcp_csum_check()
573 int ihl = cp->af == AF_INET ? ip_hdrlen(skb) : sizeof(struct ipv6hdr); in tcp_state_transition()
Dip_vs_core.c780 struct ipv6hdr *iph = ipv6_hdr(skb); in ip_vs_nat_icmp_v6()
785 struct ipv6hdr *ciph; in ip_vs_nat_icmp_v6()
791 ciph = (struct ipv6hdr *)(skb_network_header(skb) + offs); in ip_vs_nat_icmp_v6()
1026 pp, offset, sizeof(struct ipv6hdr), in ip_vs_out_icmp_v6()
Dip_vs_proto_udp.c312 udphoff = sizeof(struct ipv6hdr); in udp_csum_check()
Dip_vs_sync.c1813 sizeof(struct ipv6hdr) + sizeof(struct udphdr) : in start_sync_thread()
/linux-4.4.14/include/uapi/linux/
Dipv6.h114 struct ipv6hdr { struct
/linux-4.4.14/drivers/net/usb/
Dcdc_mbim.c310 struct ipv6hdr *iph = (void *)buf; in do_neigh_solicit()
356 struct ipv6hdr *iph = (void *)buf; in is_neigh_solicit()
359 return (len >= sizeof(struct ipv6hdr) + sizeof(struct nd_msg) && in is_neigh_solicit()
Dr8152.c1427 const struct ipv6hdr *ipv6h; in msdn_giant_send_check()
/linux-4.4.14/net/core/
Dtso.c30 struct ipv6hdr *iph = (void *)(hdr + mac_hdr_len); in tso_build_hdr()
Dflow_dissector.c209 const struct ipv6hdr *iph; in __skb_flow_dissect()
210 struct ipv6hdr _iph; in __skb_flow_dissect()
218 nhoff += sizeof(struct ipv6hdr); in __skb_flow_dissect()
Dpktgen.c2151 pkt_dev->min_pkt_size = 14 + sizeof(struct ipv6hdr) in pktgen_setup_inject()
2933 struct ipv6hdr *iph; in fill_packet_ipv6()
2988 iph = (struct ipv6hdr *) skb_put(skb, sizeof(struct ipv6hdr)); in fill_packet_ipv6()
3000 sizeof(struct ipv6hdr) - sizeof(struct udphdr) - in fill_packet_ipv6()
Dnetpoll.c386 struct ipv6hdr *ip6h; in netpoll_send_udp()
Dskbuff.c3923 off = sizeof(struct ipv6hdr); in skb_checksum_setup_ipv6()
3931 len = sizeof(struct ipv6hdr) + ntohs(ipv6_hdr(skb)->payload_len); in skb_checksum_setup_ipv6()
/linux-4.4.14/include/net/netfilter/
Dnf_queue.h60 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in hash_v6()
/linux-4.4.14/net/netfilter/ipset/
Dip_set_getport.c141 sizeof(struct ipv6hdr), &nexthdr, in ip_set_get_ip6_port()
/linux-4.4.14/net/ipv4/
Dtunnel4.c113 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in tunnel64_rcv()
Dtcp_fastopen.c111 const struct ipv6hdr *ip6h = ipv6_hdr(syn); in tcp_fastopen_cookie_gen()
Dip_tunnel.c725 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_tunnel_xmit()
777 ttl = ((const struct ipv6hdr *)inner_iph)->hop_limit; in ip_tunnel_xmit()
Dping.c907 struct ipv6hdr *ip6 = ipv6_hdr(skb); in ping_recvmsg()
/linux-4.4.14/net/ieee802154/6lowpan/
Dcore.c106 ldev->hard_header_len = sizeof(struct ipv6hdr); in lowpan_setup()
Dreassembly.c395 fail |= cb->d_size < sizeof(struct ipv6hdr); in lowpan_get_cb()
/linux-4.4.14/net/dccp/
Dipv6.c72 const struct ipv6hdr *hdr = (const struct ipv6hdr *)skb->data; in dccp_v6_err()
244 const struct ipv6hdr *rxip6h; in dccp_v6_ctl_send_reset()
924 .net_header_len = sizeof(struct ipv6hdr),
/linux-4.4.14/drivers/net/
Dvxlan.c1156 struct ipv6hdr *oip6 = NULL; in vxlan_rcv()
1439 struct ipv6hdr *pip6; in vxlan_na_create()
1448 len = LL_RESERVED_SPACE(dev) + sizeof(struct ipv6hdr) + in vxlan_na_create()
1479 skb_put(reply, sizeof(struct ipv6hdr)); in vxlan_na_create()
1484 memset(pip6, 0, sizeof(struct ipv6hdr)); in vxlan_na_create()
1492 skb_pull(reply, sizeof(struct ipv6hdr)); in vxlan_na_create()
1514 skb_push(reply, sizeof(struct ipv6hdr)); in vxlan_na_create()
1525 const struct ipv6hdr *iphdr; in neigh_reduce()
1624 struct ipv6hdr *pip6; in route_shortcircuit()
1626 if (!pskb_may_pull(skb, sizeof(struct ipv6hdr))) in route_shortcircuit()
[all …]
Dvrf.c117 const struct ipv6hdr *ipv6h; in check_ipv6_frame()
118 struct ipv6hdr _ipv6h; in check_ipv6_frame()
225 const struct ipv6hdr *iph = ipv6_hdr(skb); in vrf_process_v6_outbound()
Dgeneve.c162 struct ipv6hdr *ip6h = NULL; in geneve_rx()
686 + GENEVE_BASE_HLEN + opt_len + sizeof(struct ipv6hdr); in geneve6_build_skb()
1202 encap_len += sizeof(struct ipv6hdr); in geneve_configure()
/linux-4.4.14/net/mpls/
Daf_mpls.c157 sizeof(struct ipv6hdr))) { in mpls_select_multipath()
158 const struct ipv6hdr *v6hdr; in mpls_select_multipath()
160 v6hdr = (const struct ipv6hdr *)(mpls_hdr(skb) + in mpls_select_multipath()
210 struct ipv6hdr *hdr6 = ipv6_hdr(skb); in mpls_egress()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1268 struct ipv6hdr *ipv6h; in qlcnic_process_lro()
1320 ipv6h = (struct ipv6hdr *)skb->data; in qlcnic_process_lro()
1321 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_process_lro()
1790 struct ipv6hdr *ipv6h; in qlcnic_83xx_process_lro()
1842 ipv6h = (struct ipv6hdr *)skb->data; in qlcnic_83xx_process_lro()
1843 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_83xx_process_lro()
/linux-4.4.14/net/openvswitch/
Dactions.c370 static void set_ipv6_fl(struct ipv6hdr *nh, u32 fl, u32 mask) in set_ipv6_fl()
443 struct ipv6hdr *nh; in set_ipv6()
447 sizeof(struct ipv6hdr)); in set_ipv6()
Dconntrack.c284 ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, in ovs_ct_helper()
Dflow.c255 struct ipv6hdr *nh; in parse_ipv6hdr()
/linux-4.4.14/security/
Dlsm_audit.c115 struct ipv6hdr *ip6; in ipv6_skb_to_auditdata()
/linux-4.4.14/drivers/net/ethernet/sfc/
Drx.c897 const struct ipv6hdr *ip6 = in efx_filter_rfs()
898 (const struct ipv6hdr *)(skb->data + nhoff); in efx_filter_rfs()
Dtx.c1191 struct ipv6hdr *tsoh_iph = in tso_start_new_packet()
1192 (struct ipv6hdr *)(header + st->ip_off); in tso_start_new_packet()
/linux-4.4.14/drivers/net/vmxnet3/
Dvmxnet3_drv.c854 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vmxnet3_parse_and_copy_hdr()
921 struct ipv6hdr *iph = ipv6_hdr(skb); in vmxnet3_prepare_tso()
1193 struct ipv6hdr *ipv6; in vmxnet3_get_hdr_len()
1216 return sizeof(struct ipv6hdr) + sizeof(struct tcphdr); in vmxnet3_get_hdr_len()
1217 hlen = sizeof(struct ipv6hdr); in vmxnet3_get_hdr_len()
1218 hdr.ptr += sizeof(struct ipv6hdr); in vmxnet3_get_hdr_len()
/linux-4.4.14/net/bluetooth/
D6lowpan.c325 skb_set_transport_header(local_skb, sizeof(struct ipv6hdr)); in recv_pkt()
492 struct ipv6hdr *hdr; in header_create()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1975 struct ipv6hdr *ipv6; in i40e_atr()
2006 hlen = sizeof(struct ipv6hdr); in i40e_atr()
2200 struct ipv6hdr *ipv6h; in i40e_tso()
2301 struct ipv6hdr *this_ipv6_hdr; in i40e_tx_enable_csum()
/linux-4.4.14/net/sctp/
Doutput.c124 overhead = sizeof(struct ipv6hdr); in sctp_packet_init()
Dipv6.c1014 .net_header_len = sizeof(struct ipv6hdr),
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c701 struct ipv6hdr *ipv6h) in get_fixed_ipv6_csum()
715 skb->csum = csum_add(skb->csum, csum_partial(ipv6h, sizeof(struct ipv6hdr), 0)); in get_fixed_ipv6_csum()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c2653 struct ipv6hdr *ipv6hdr = ipv6_hdr(skb); in get_ipv6_5tuple_tag() local
2655 tag = crc32(0, &ipv6hdr->nexthdr, 1); in get_ipv6_5tuple_tag()
2656 tag = crc32(tag, (u8 *)&ipv6hdr->saddr, 32); in get_ipv6_5tuple_tag()
/linux-4.4.14/net/l2tp/
Dl2tp_ip6.c194 struct ipv6hdr *iph = ipv6_hdr(skb); in l2tp_ip6_recv()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c269 (max_size - sizeof(struct ipv6hdr))) in hns_nic_get_headlen()
273 hlen = sizeof(struct ipv6hdr); in hns_nic_get_headlen()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c1449 struct ipv6hdr *ipv6h; in i40e_tso()
1507 struct ipv6hdr *this_ipv6_hdr; in i40e_tx_enable_csum()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c523 hdrs_len += sizeof(struct ipv6hdr); in bnx2x_set_gro_params()
718 struct ipv6hdr *iph = ipv6_hdr(skb); in bnx2x_gro_ipv6_csum()
721 skb_set_transport_header(skb, sizeof(struct ipv6hdr)); in bnx2x_gro_ipv6_csum()
3720 hlen_w - ((sizeof(struct ipv6hdr)) >> 1); in bnx2x_update_pbds_gso_enc()
3764 struct ipv6hdr *ipv6; in bnx2x_set_ipv6_ext_e2()
/linux-4.4.14/drivers/net/ethernet/tile/
Dtilegx.c1726 struct ipv6hdr *ih6; in tso_headers_prepare()
1774 ih6 = (struct ipv6hdr *)(buf + ih_off); in tso_headers_prepare()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1107 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph; in hwcsum()
/linux-4.4.14/net/netlabel/
Dnetlabel_unlabeled.c1487 struct ipv6hdr *hdr6; in netlbl_unlabel_getattr()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c848 #define BNXT_IPV6_HDR_SIZE (sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
882 struct ipv6hdr *iph; in bnxt_gro_skb()
888 skb_set_transport_header(skb, nw_off + sizeof(struct ipv6hdr)); in bnxt_gro_skb()
907 struct ipv6hdr *iph = (struct ipv6hdr *)skb->data; in bnxt_gro_skb()
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dcm.c241 sizeof(struct iphdr) : sizeof(struct ipv6hdr)) - in set_emss()
623 sizeof(struct ipv6hdr) : in best_mtu()
2354 struct ipv6hdr *ip6 = (struct ipv6hdr *)((u8 *)(req + 1) + eth_len); in get_4tuple()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c1027 struct ipv6hdr *ip6h = (struct ipv6hdr *)(skb->data + offset); in be_ipv6_exthdr_check()
1029 offset += sizeof(struct ipv6hdr); in be_ipv6_exthdr_check()
1243 struct ipv6hdr *hdr = ipv6_hdr((*skb)); in be_send_pkt_to_bmc()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c837 struct ipv6hdr *ipv6; in fm10k_tx_csum()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1057 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph; in hwcsum()
/linux-4.4.14/drivers/net/bonding/
Dbond_alb.c1374 struct ipv6hdr *ip6hdr; in bond_alb_xmit()
Dbond_main.c3104 const struct ipv6hdr *iph6; in bond_flow_dissect()
/linux-4.4.14/security/smack/
Dsmack_lsm.c3869 struct ipv6hdr _ipv6h; in smk_skb_to_addr_ipv6()
3870 struct ipv6hdr *ip6; in smk_skb_to_addr_ipv6()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvpp2.c2062 sizeof(struct ipv6hdr) - 6, in mvpp2_prs_ip6_proto()
2850 sizeof(struct ipv6hdr) - 4, in mvpp2_prs_ip6_init()
5043 struct ipv6hdr *ip6h = ipv6_hdr(skb); in mvpp2_skb_tx_csum()
Dmvneta.c1471 struct ipv6hdr *ip6h = ipv6_hdr(skb); in mvneta_skb_tx_csum()
/linux-4.4.14/net/xfrm/
Dxfrm_state.c2163 const struct ipv6hdr *iph6; in xfrm_audit_helper_pktinfo()
/linux-4.4.14/drivers/net/ethernet/
Djme.c2110 struct ipv6hdr *ip6h = ipv6_hdr(skb); in jme_tx_tso()
/linux-4.4.14/drivers/s390/net/
Dqeth_l3_main.c2787 struct ipv6hdr *ip6h = ipv6_hdr(skb); in qeth_tso_fill_header()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c7020 struct ipv6hdr *ipv6; in ixgbe_tx_csum()
7339 struct ipv6hdr *ipv6; in ixgbe_atr()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbnad.c2524 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in bnad_tso_prepare()
/linux-4.4.14/security/selinux/
Dhooks.c3841 struct ipv6hdr _ipv6h, *ip6; in selinux_parse_skb_ipv6()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic.c3514 l4kwqe3->mss = l4kwqe3->pmtu - sizeof(struct ipv6hdr) - in cnic_cm_conn_req()
Dbnx2.c6631 sizeof(struct ipv6hdr) - ETH_HLEN; in bnx2_start_xmit()
/linux-4.4.14/drivers/net/ethernet/realtek/
Dr8169.c6979 const struct ipv6hdr *ipv6h; in msdn_giant_send_check()