/net/ipv6/ |
D | ip6_offload.c | 77 struct ipv6hdr *ipv6h; in ipv6_gso_segment() local 90 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment() 96 SKB_GSO_CB(skb)->encap_level += sizeof(*ipv6h); in ipv6_gso_segment() 98 ipv6h = ipv6_hdr(skb); in ipv6_gso_segment() 99 __skb_pull(skb, sizeof(*ipv6h)); in ipv6_gso_segment() 102 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 126 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment() 130 skb->head - (unsigned char *)(ipv6h + 1); in ipv6_gso_segment() 132 payload_len = skb->len - nhoff - sizeof(*ipv6h); in ipv6_gso_segment() 133 ipv6h->payload_len = htons(payload_len); in ipv6_gso_segment() [all …]
|
D | udp_offload.c | 39 const struct ipv6hdr *ipv6h; in udp6_ufo_fragment() local 56 ipv6h = ipv6_hdr(skb); in udp6_ufo_fragment() 60 uh->check = udp_v6_check(skb->len, &ipv6h->saddr, in udp6_ufo_fragment() 61 &ipv6h->daddr, csum); in udp6_ufo_fragment() 163 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in udp6_gro_complete() local 184 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, in udp6_gro_complete() 185 &ipv6h->daddr, 0); in udp6_gro_complete()
|
D | ip6_tunnel.c | 427 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)raw; in ip6_tnl_parse_tlv_enc_lim() local 429 unsigned int off = nhoff + sizeof(*ipv6h); in ip6_tnl_parse_tlv_enc_lim() 430 u8 nexthdr = ipv6h->nexthdr; in ip6_tnl_parse_tlv_enc_lim() 499 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6_tnl_err() local 515 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err() 567 len = sizeof(*ipv6h) + ntohs(ipv6h->payload_len); in ip6_tnl_err() 742 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate() argument 745 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate() 750 return IP6_ECN_decapsulate(ipv6h, skb); in ip4ip6_dscp_ecn_decapsulate() 754 const struct ipv6hdr *ipv6h, in ip6ip6_dscp_ecn_decapsulate() argument [all …]
|
D | tcpv6_offload.c | 53 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment() local 62 __tcp_v6_send_check(skb, &ipv6h->saddr, &ipv6h->daddr); in tcp6_gso_segment()
|
D | ip6_gre.c | 427 const struct ipv6hdr *ipv6h; in ip6gre_err() local 435 ipv6h = (const struct ipv6hdr *)skb->data; in ip6gre_err() 436 t = ip6gre_tunnel_lookup(skb->dev, &ipv6h->daddr, &ipv6h->saddr, in ip6gre_err() 495 const struct ipv6hdr *ipv6h; in ip6gre_rcv() local 498 ipv6h = ipv6_hdr(skb); in ip6gre_rcv() 500 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv() 531 const struct ipv6hdr *ipv6h; in ip6erspan_rcv() local 536 ipv6h = ipv6_hdr(skb); in ip6erspan_rcv() 541 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6erspan_rcv() 667 struct ipv6hdr *ipv6h; in prepare_ip6gre_xmit_ipv6() local [all …]
|
D | ip6_vti.c | 302 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vti6_input_proto() local 305 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_input_proto() 317 ipv6h = ipv6_hdr(skb); in vti6_input_proto() 318 if (!ip6_tnl_rcv_ctl(t, &ipv6h->daddr, &ipv6h->saddr)) { in vti6_input_proto()
|
D | sit.c | 640 const struct ipv6hdr *ipv6h; in packet_is_spoofed() local 652 ipv6h = ipv6_hdr(skb); in packet_is_spoofed() 654 if (unlikely(is_spoofed_6rd(tunnel, iph->saddr, &ipv6h->saddr))) { in packet_is_spoofed() 656 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 657 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed() 661 if (likely(!is_spoofed_6rd(tunnel, iph->daddr, &ipv6h->daddr))) in packet_is_spoofed() 664 if (only_dnatted(tunnel, &ipv6h->daddr)) in packet_is_spoofed() 668 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 669 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed()
|
D | tcp_ipv6.c | 1004 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset() local 1038 key = tcp_v6_md5_do_lookup(sk, &ipv6h->saddr, l3index); in tcp_v6_send_reset() 1053 &ipv6h->saddr, in tcp_v6_send_reset() 1054 th->source, &ipv6h->daddr, in tcp_v6_send_reset() 1064 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr, l3index); in tcp_v6_send_reset() 1087 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset() 1096 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset() 1100 ipv6_get_dsfield(ipv6h), label, priority); in tcp_v6_send_reset()
|
D | exthdrs.c | 212 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() local 236 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao() 248 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 254 swap(ipv6h->saddr, hao->addr); in ipv6_dest_hao()
|
D | reassembly.c | 63 static u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn() argument 65 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
|
D | ip6mr.c | 2007 struct ipv6hdr *ipv6h; in ip6mr_forward2() local 2027 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2031 .daddr = ipv6h->daddr, in ip6mr_forward2() 2061 if (skb_cow(skb, sizeof(*ipv6h) + LL_RESERVED_SPACE(dev))) in ip6mr_forward2() 2064 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2065 ipv6h->hop_limit--; in ip6mr_forward2()
|
/net/netfilter/ |
D | xt_TCPMSS.c | 221 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpmss_tg6() local 227 nexthdr = ipv6h->nexthdr; in tcpmss_tg6() 228 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6() 234 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6() 238 ipv6h = ipv6_hdr(skb); in tcpmss_tg6() 239 oldlen = ipv6h->payload_len; in tcpmss_tg6() 244 ipv6h->payload_len = newlen; in tcpmss_tg6()
|
D | nf_nat_proto.c | 387 struct ipv6hdr *ipv6h; in nf_nat_ipv6_manip_pkt() local 392 if (skb_ensure_writable(skb, iphdroff + sizeof(*ipv6h))) in nf_nat_ipv6_manip_pkt() 395 ipv6h = (void *)skb->data + iphdroff; in nf_nat_ipv6_manip_pkt() 396 nexthdr = ipv6h->nexthdr; in nf_nat_ipv6_manip_pkt() 397 hdroff = ipv6_skip_exthdr(skb, iphdroff + sizeof(*ipv6h), in nf_nat_ipv6_manip_pkt() 407 ipv6h = (void *)skb->data + iphdroff; in nf_nat_ipv6_manip_pkt() 411 ipv6h->saddr = target->src.u3.in6; in nf_nat_ipv6_manip_pkt() 413 ipv6h->daddr = target->dst.u3.in6; in nf_nat_ipv6_manip_pkt() 469 const struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + iphdroff); in nf_nat_ipv6_csum_update() local 473 oldip = &ipv6h->saddr; in nf_nat_ipv6_csum_update() [all …]
|
D | xt_TCPOPTSTRIP.c | 98 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpoptstrip_tg6() local 103 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 104 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6()
|
/net/tls/ |
D | tls_device_fallback.c | 171 const struct ipv6hdr *ipv6h; in update_chksum() local 185 ipv6h = ipv6_hdr(skb); in update_chksum() 186 th->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, in update_chksum()
|
/net/sched/ |
D | sch_taprio.c | 301 const struct ipv6hdr *ipv6h; in get_tcp_tstamp() local 305 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in get_tcp_tstamp() 306 if (!ipv6h) in get_tcp_tstamp() 309 if (ipv6h->version == 4) { in get_tcp_tstamp() 310 iph = (struct iphdr *)ipv6h; in get_tcp_tstamp() 317 ipv6h = skb_header_pointer(skb, offset, in get_tcp_tstamp() 320 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in get_tcp_tstamp() 325 } else if (ipv6h->version == 6 && ipv6h->nexthdr != IPPROTO_TCP) { in get_tcp_tstamp()
|
D | sch_cake.c | 905 const struct ipv6hdr *ipv6h; in cake_get_tcphdr() local 911 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in cake_get_tcphdr() 913 if (!ipv6h) in cake_get_tcphdr() 916 if (ipv6h->version == 4) { in cake_get_tcphdr() 917 iph = (struct iphdr *)ipv6h; in cake_get_tcphdr() 924 ipv6h = skb_header_pointer(skb, offset, in cake_get_tcphdr() 927 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 936 } else if (ipv6h->version == 6) { in cake_get_tcphdr() 937 if (ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 1157 const struct ipv6hdr *ipv6h, *ipv6h_check; in cake_ack_filter() local [all …]
|
/net/ipv6/netfilter/ |
D | nf_conntrack_reasm.c | 133 static inline u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn() argument 135 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
|