/Linux-v4.19/net/ipv6/netfilter/ |
D | nf_nat_l3proto_ipv6.c | 83 struct ipv6hdr *ipv6h; in nf_nat_ipv6_manip_pkt() local 88 if (!skb_make_writable(skb, iphdroff + sizeof(*ipv6h))) in nf_nat_ipv6_manip_pkt() 91 ipv6h = (void *)skb->data + iphdroff; in nf_nat_ipv6_manip_pkt() 92 nexthdr = ipv6h->nexthdr; in nf_nat_ipv6_manip_pkt() 93 hdroff = ipv6_skip_exthdr(skb, iphdroff + sizeof(*ipv6h), in nf_nat_ipv6_manip_pkt() 104 ipv6h = (void *)skb->data + iphdroff; in nf_nat_ipv6_manip_pkt() 108 ipv6h->saddr = target->src.u3.in6; in nf_nat_ipv6_manip_pkt() 110 ipv6h->daddr = target->dst.u3.in6; in nf_nat_ipv6_manip_pkt() 120 const struct ipv6hdr *ipv6h = (struct ipv6hdr *)(skb->data + iphdroff); in nf_nat_ipv6_csum_update() local 124 oldip = &ipv6h->saddr; in nf_nat_ipv6_csum_update() [all …]
|
D | nf_conntrack_reasm.c | 139 static inline u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn() argument 141 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
|
/Linux-v4.19/net/ipv6/ |
D | ip6_offload.c | 62 struct ipv6hdr *ipv6h; in ipv6_gso_segment() local 75 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment() 81 SKB_GSO_CB(skb)->encap_level += sizeof(*ipv6h); in ipv6_gso_segment() 83 ipv6h = ipv6_hdr(skb); in ipv6_gso_segment() 84 __skb_pull(skb, sizeof(*ipv6h)); in ipv6_gso_segment() 87 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment() 109 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment() 113 skb->head - (unsigned char *)(ipv6h + 1); in ipv6_gso_segment() 115 payload_len = skb->len - nhoff - sizeof(*ipv6h); in ipv6_gso_segment() 116 ipv6h->payload_len = htons(payload_len); in ipv6_gso_segment() [all …]
|
D | udp_offload.c | 42 const struct ipv6hdr *ipv6h; in udp6_ufo_fragment() local 59 ipv6h = ipv6_hdr(skb); in udp6_ufo_fragment() 63 uh->check = udp_v6_check(skb->len, &ipv6h->saddr, in udp6_ufo_fragment() 64 &ipv6h->daddr, csum); in udp6_ufo_fragment() 147 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in udp6_gro_complete() local 152 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, in udp6_gro_complete() 153 &ipv6h->daddr, 0); in udp6_gro_complete()
|
D | ip6_tunnel.c | 405 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)raw; in ip6_tnl_parse_tlv_enc_lim() local 407 unsigned int off = nhoff + sizeof(*ipv6h); in ip6_tnl_parse_tlv_enc_lim() 408 u8 next, nexthdr = ipv6h->nexthdr; in ip6_tnl_parse_tlv_enc_lim() 477 const struct ipv6hdr *ipv6h = (const struct ipv6hdr *)skb->data; in ip6_tnl_err() local 493 t = ip6_tnl_lookup(dev_net(skb->dev), &ipv6h->daddr, &ipv6h->saddr); in ip6_tnl_err() 541 len = sizeof(*ipv6h) + ntohs(ipv6h->payload_len); in ip6_tnl_err() 701 const struct ipv6hdr *ipv6h, in ip4ip6_dscp_ecn_decapsulate() argument 704 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate() 709 return IP6_ECN_decapsulate(ipv6h, skb); in ip4ip6_dscp_ecn_decapsulate() 713 const struct ipv6hdr *ipv6h, in ip6ip6_dscp_ecn_decapsulate() argument [all …]
|
D | tcpv6_offload.c | 56 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment() local 65 __tcp_v6_send_check(skb, &ipv6h->saddr, &ipv6h->daddr); in tcp6_gso_segment()
|
D | ip6_gre.c | 431 const struct ipv6hdr *ipv6h; in ip6gre_err() local 453 ipv6h = (const struct ipv6hdr *)skb->data; in ip6gre_err() 457 t = ip6gre_tunnel_lookup(skb->dev, &ipv6h->daddr, &ipv6h->saddr, in ip6gre_err() 512 const struct ipv6hdr *ipv6h; in ip6gre_rcv() local 515 ipv6h = ipv6_hdr(skb); in ip6gre_rcv() 517 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6gre_rcv() 548 const struct ipv6hdr *ipv6h; in ip6erspan_rcv() local 556 ipv6h = ipv6_hdr(skb); in ip6erspan_rcv() 562 &ipv6h->saddr, &ipv6h->daddr, tpi->key, in ip6erspan_rcv() 682 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in prepare_ip6gre_xmit_ipv6() local [all …]
|
D | ip6_vti.c | 306 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in vti6_rcv() local 309 t = vti6_tnl_lookup(dev_net(skb->dev), &ipv6h->saddr, &ipv6h->daddr); in vti6_rcv() 321 if (!ip6_tnl_rcv_ctl(t, &ipv6h->daddr, &ipv6h->saddr)) { in vti6_rcv() 524 struct ipv6hdr *ipv6h; in vti6_tnl_xmit() local 532 ipv6h = ipv6_hdr(skb); in vti6_tnl_xmit() 535 vti6_addr_conflict(t, ipv6h)) in vti6_tnl_xmit()
|
D | sit.c | 607 const struct ipv6hdr *ipv6h; in packet_is_spoofed() local 619 ipv6h = ipv6_hdr(skb); in packet_is_spoofed() 621 if (unlikely(is_spoofed_6rd(tunnel, iph->saddr, &ipv6h->saddr))) { in packet_is_spoofed() 623 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 624 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed() 628 if (likely(!is_spoofed_6rd(tunnel, iph->daddr, &ipv6h->daddr))) in packet_is_spoofed() 631 if (only_dnatted(tunnel, &ipv6h->daddr)) in packet_is_spoofed() 635 &iph->saddr, &ipv6h->saddr, in packet_is_spoofed() 636 &iph->daddr, &ipv6h->daddr); in packet_is_spoofed()
|
D | exthdrs.c | 216 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() local 240 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao() 252 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 258 swap(ipv6h->saddr, hao->addr); in ipv6_dest_hao()
|
D | ip6mr.c | 1963 struct ipv6hdr *ipv6h; in ip6mr_forward2() local 1983 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 1987 .daddr = ipv6h->daddr, in ip6mr_forward2() 2017 if (skb_cow(skb, sizeof(*ipv6h) + LL_RESERVED_SPACE(dev))) in ip6mr_forward2() 2020 ipv6h = ipv6_hdr(skb); in ip6mr_forward2() 2021 ipv6h->hop_limit--; in ip6mr_forward2()
|
D | reassembly.c | 65 static u8 ip6_frag_ecn(const struct ipv6hdr *ipv6h) in ip6_frag_ecn() argument 67 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
|
D | tcp_ipv6.c | 908 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_send_reset() local 928 key = tcp_v6_md5_do_lookup(sk, &ipv6h->saddr); in tcp_v6_send_reset() 939 &ipv6h->saddr, in tcp_v6_send_reset() 940 th->source, &ipv6h->daddr, in tcp_v6_send_reset() 947 key = tcp_v6_md5_do_lookup(sk1, &ipv6h->saddr); in tcp_v6_send_reset()
|
/Linux-v4.19/include/net/ |
D | dsfield.h | 22 static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h) in ipv6_get_dsfield() argument 24 return ntohs(*(const __be16 *)ipv6h) >> 4; in ipv6_get_dsfield() 44 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield() argument 47 __be16 *p = (__force __be16 *)ipv6h; in ipv6_change_dsfield()
|
/Linux-v4.19/net/netfilter/ |
D | xt_TCPMSS.c | 224 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpmss_tg6() local 230 nexthdr = ipv6h->nexthdr; in tcpmss_tg6() 231 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpmss_tg6() 237 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpmss_tg6() 241 ipv6h = ipv6_hdr(skb); in tcpmss_tg6() 242 oldlen = ipv6h->payload_len; in tcpmss_tg6() 247 ipv6h->payload_len = newlen; in tcpmss_tg6()
|
D | xt_TCPOPTSTRIP.c | 102 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcpoptstrip_tg6() local 107 nexthdr = ipv6h->nexthdr; in tcpoptstrip_tg6() 108 tcphoff = ipv6_skip_exthdr(skb, sizeof(*ipv6h), &nexthdr, &frag_off); in tcpoptstrip_tg6() 113 sizeof(*ipv6h) + sizeof(struct tcphdr)); in tcpoptstrip_tg6()
|
/Linux-v4.19/net/tls/ |
D | tls_device_fallback.c | 170 const struct ipv6hdr *ipv6h; in update_chksum() local 184 ipv6h = ipv6_hdr(skb); in update_chksum() 185 th->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, in update_chksum()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls_rxtx.c | 327 struct ipv6hdr *ipv6h = (struct ipv6hdr *)iph; in tls_update_resync_sn() local 330 &ipv6h->saddr, th->source, in tls_update_resync_sn() 331 &ipv6h->daddr, ntohs(th->dest), in tls_update_resync_sn()
|
/Linux-v4.19/net/sched/ |
D | sch_cake.c | 862 const struct ipv6hdr *ipv6h; in cake_get_tcphdr() local 868 ipv6h = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in cake_get_tcphdr() 870 if (!ipv6h) in cake_get_tcphdr() 873 if (ipv6h->version == 4) { in cake_get_tcphdr() 874 iph = (struct iphdr *)ipv6h; in cake_get_tcphdr() 881 ipv6h = skb_header_pointer(skb, offset, in cake_get_tcphdr() 884 if (!ipv6h || ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 893 } else if (ipv6h->version == 6) { in cake_get_tcphdr() 894 if (ipv6h->nexthdr != IPPROTO_TCP) in cake_get_tcphdr() 1110 const struct ipv6hdr *ipv6h, *ipv6h_check; in cake_ack_filter() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 605 struct ipv6hdr *ipv6h) in get_fixed_ipv6_csum() argument 607 __u8 nexthdr = ipv6h->nexthdr; in get_fixed_ipv6_csum() 616 temp = csum_add(hw_checksum, *(__wsum *)ipv6h); in get_fixed_ipv6_csum() 618 skb->csum = csum_add(temp, (__force __wsum)*(__be16 *)&ipv6h->nexthdr); in get_fixed_ipv6_csum()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1269 struct ipv6hdr *ipv6h; in qlcnic_process_lro() local 1321 ipv6h = (struct ipv6hdr *)skb->data; in qlcnic_process_lro() 1324 ipv6h->payload_len = htons(length); in qlcnic_process_lro() 1791 struct ipv6hdr *ipv6h; in qlcnic_83xx_process_lro() local 1843 ipv6h = (struct ipv6hdr *)skb->data; in qlcnic_83xx_process_lro() 1847 ipv6h->payload_len = htons(length); in qlcnic_83xx_process_lro()
|
/Linux-v4.19/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.c | 1403 struct ipv6hdr *ipv6h = NULL; in dpaa_enable_tx_csum() local 1441 ipv6h = ipv6_hdr(skb); in dpaa_enable_tx_csum() 1442 WARN_ON(!ipv6h); in dpaa_enable_tx_csum() 1443 l4_proto = ipv6h->nexthdr; in dpaa_enable_tx_csum()
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | tx.c | 134 struct ipv6hdr *ipv6h = in iwl_mvm_tx_csum() local 136 unsigned int off = sizeof(*ipv6h); in iwl_mvm_tx_csum() 138 protocol = ipv6h->nexthdr; in iwl_mvm_tx_csum()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_common.c | 734 struct ipv6hdr *ipv6h; in nfp_net_tx_csum() local 749 ipv6h = skb->encapsulation ? inner_ipv6_hdr(skb) : ipv6_hdr(skb); in nfp_net_tx_csum() 754 } else if (ipv6h->version == 6) { in nfp_net_tx_csum() 755 l4_hdr = ipv6h->nexthdr; in nfp_net_tx_csum()
|
/Linux-v4.19/drivers/net/ethernet/brocade/bna/ |
D | bnad.c | 2515 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in bnad_tso_prepare() local 2517 ipv6h->payload_len = 0; in bnad_tso_prepare() 2519 ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr, 0, in bnad_tso_prepare()
|