/net/ipv6/ |
D | ip6_offload.c | 78 struct ipv6hdr *ipv6h; in ipv6_gso_segment() local 91 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment() 97 SKB_GSO_CB(skb)->encap_level += sizeof(*ipv6h); in ipv6_gso_segment() 99 ipv6h = ipv6_hdr(skb); in ipv6_gso_segment() 100 __skb_pull(skb, sizeof(*ipv6h)); in ipv6_gso_segment() 103 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 127 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment() 131 skb->head - (unsigned char *)(ipv6h + 1); in ipv6_gso_segment() 133 payload_len = skb->len - nhoff - sizeof(*ipv6h); in ipv6_gso_segment() 134 ipv6h->payload_len = htons(payload_len); in ipv6_gso_segment() [all …]
|
D | udp_offload.c | 35 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 185 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, in udp6_gro_complete() 186 &ipv6h->daddr, 0); in udp6_gro_complete()
|
D | ip6_tunnel.c | 401 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)raw; in ip6_tnl_parse_tlv_enc_lim() local 403 unsigned int off = nhoff + sizeof(*ipv6h); in ip6_tnl_parse_tlv_enc_lim() 404 u8 nexthdr = ipv6h->nexthdr; in ip6_tnl_parse_tlv_enc_lim() 468 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6_tnl_err() local 484 t = ip6_tnl_lookup(dev_net(skb->dev), skb->dev->ifindex, &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err() 536 len = sizeof(*ipv6h) + ntohs(ipv6h->payload_len); in ip6_tnl_err() 711 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate() argument 714 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate() 719 return IP6_ECN_decapsulate(ipv6h, skb); in ip4ip6_dscp_ecn_decapsulate() 723 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 | 303 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vti6_input_proto() local 306 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_input_proto() 318 ipv6h = ipv6_hdr(skb); in vti6_input_proto() 319 if (!ip6_tnl_rcv_ctl(t, &ipv6h->daddr, &ipv6h->saddr)) { in vti6_input_proto()
|
D | sit.c | 643 const struct ipv6hdr *ipv6h; in packet_is_spoofed() local 655 ipv6h = ipv6_hdr(skb); in packet_is_spoofed() 657 if (unlikely(is_spoofed_6rd(tunnel, iph->saddr, &ipv6h->saddr))) { in packet_is_spoofed() 659 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 660 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed() 664 if (likely(!is_spoofed_6rd(tunnel, iph->daddr, &ipv6h->daddr))) in packet_is_spoofed() 667 if (only_dnatted(tunnel, &ipv6h->daddr)) in packet_is_spoofed() 671 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 672 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed()
|
D | tcp_ipv6.c | 1027 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset() local 1061 key = tcp_v6_md5_do_lookup(sk, &ipv6h->saddr, l3index); in tcp_v6_send_reset() 1076 &ipv6h->saddr, in tcp_v6_send_reset() 1077 th->source, &ipv6h->daddr, in tcp_v6_send_reset() 1087 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr, l3index); in tcp_v6_send_reset() 1110 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset() 1119 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset() 1123 ipv6_get_dsfield(ipv6h), label, priority); in tcp_v6_send_reset()
|
D | exthdrs.c | 234 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() local 258 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao() 270 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 276 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 | 2006 struct ipv6hdr *ipv6h; in ip6mr_forward2() local 2026 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2030 .daddr = ipv6h->daddr, in ip6mr_forward2() 2060 if (skb_cow(skb, sizeof(*ipv6h) + LL_RESERVED_SPACE(dev))) in ip6mr_forward2() 2063 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2064 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 | 299 const struct ipv6hdr *ipv6h; in get_tcp_tstamp() local 303 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in get_tcp_tstamp() 304 if (!ipv6h) in get_tcp_tstamp() 307 if (ipv6h->version == 4) { in get_tcp_tstamp() 308 iph = (struct iphdr *)ipv6h; in get_tcp_tstamp() 315 ipv6h = skb_header_pointer(skb, offset, in get_tcp_tstamp() 318 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in get_tcp_tstamp() 323 } 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 | 129 static inline u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn() argument 131 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
|