/net/ipv6/ |
D | ip6_offload.c | 75 struct ipv6hdr *ipv6h; in ipv6_gso_segment() local 88 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment() 94 SKB_GSO_CB(skb)->encap_level += sizeof(*ipv6h); in ipv6_gso_segment() 96 ipv6h = ipv6_hdr(skb); in ipv6_gso_segment() 97 __skb_pull(skb, sizeof(*ipv6h)); in ipv6_gso_segment() 100 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 124 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment() 128 skb->head - (unsigned char *)(ipv6h + 1); in ipv6_gso_segment() 130 payload_len = skb->len - nhoff - sizeof(*ipv6h); in ipv6_gso_segment() 131 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() 150 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in udp6_gro_complete() local 171 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, in udp6_gro_complete() 172 &ipv6h->daddr, 0); in udp6_gro_complete()
|
D | ip6_tunnel.c | 399 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)raw; in ip6_tnl_parse_tlv_enc_lim() local 401 unsigned int off = nhoff + sizeof(*ipv6h); in ip6_tnl_parse_tlv_enc_lim() 402 u8 nexthdr = ipv6h->nexthdr; in ip6_tnl_parse_tlv_enc_lim() 471 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6_tnl_err() local 487 t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err() 535 len = sizeof(*ipv6h) + ntohs(ipv6h->payload_len); in ip6_tnl_err() 695 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate() argument 698 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate() 703 return IP6_ECN_decapsulate(ipv6h, skb); in ip4ip6_dscp_ecn_decapsulate() 707 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() 493 const struct ipv6hdr *ipv6h; in ip6gre_rcv() local 496 ipv6h = ipv6_hdr(skb); in ip6gre_rcv() 498 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv() 529 const struct ipv6hdr *ipv6h; in ip6erspan_rcv() local 537 ipv6h = ipv6_hdr(skb); in ip6erspan_rcv() 542 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6erspan_rcv() 668 struct ipv6hdr *ipv6h; in prepare_ip6gre_xmit_ipv6() local [all …]
|
D | ip6_vti.c | 301 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vti6_rcv() local 304 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_rcv() 316 ipv6h = ipv6_hdr(skb); in vti6_rcv() 317 if (!ip6_tnl_rcv_ctl(t, &ipv6h->daddr, &ipv6h->saddr)) { in vti6_rcv()
|
D | sit.c | 600 const struct ipv6hdr *ipv6h; in packet_is_spoofed() local 612 ipv6h = ipv6_hdr(skb); in packet_is_spoofed() 614 if (unlikely(is_spoofed_6rd(tunnel, iph->saddr, &ipv6h->saddr))) { in packet_is_spoofed() 616 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 617 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed() 621 if (likely(!is_spoofed_6rd(tunnel, iph->daddr, &ipv6h->daddr))) in packet_is_spoofed() 624 if (only_dnatted(tunnel, &ipv6h->daddr)) in packet_is_spoofed() 628 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 629 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed()
|
D | exthdrs.c | 211 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() local 235 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao() 247 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 253 swap(ipv6h->saddr, hao->addr); in ipv6_dest_hao()
|
D | tcp_ipv6.c | 944 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset() local 972 key = tcp_v6_md5_do_lookup(sk, &ipv6h->saddr); in tcp_v6_send_reset() 983 &ipv6h->saddr, in tcp_v6_send_reset() 984 th->source, &ipv6h->daddr, in tcp_v6_send_reset() 991 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr); in tcp_v6_send_reset() 1014 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset() 1023 label = ip6_flowlabel(ipv6h); in tcp_v6_send_reset()
|
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 | 2001 struct ipv6hdr *ipv6h; in ip6mr_forward2() local 2021 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2025 .daddr = ipv6h->daddr, in ip6mr_forward2() 2055 if (skb_cow(skb, sizeof(*ipv6h) + LL_RESERVED_SPACE(dev))) in ip6mr_forward2() 2058 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2059 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 | 869 const struct ipv6hdr *ipv6h; in cake_get_tcphdr() local 875 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in cake_get_tcphdr() 877 if (!ipv6h) in cake_get_tcphdr() 880 if (ipv6h->version == 4) { in cake_get_tcphdr() 881 iph = (struct iphdr *)ipv6h; in cake_get_tcphdr() 888 ipv6h = skb_header_pointer(skb, offset, in cake_get_tcphdr() 891 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 900 } else if (ipv6h->version == 6) { in cake_get_tcphdr() 901 if (ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 1121 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()
|