/linux-4.1.27/include/net/netfilter/ |
D | nf_queue.h | 60 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in hash_v6() local 63 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6() 64 (__force u32)ip6h->daddr.s6_addr32[3]) { in hash_v6() 65 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6() 66 b = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6() 68 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6() 69 a = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6() 72 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6() 73 (__force u32)ip6h->daddr.s6_addr32[1]) in hash_v6() 74 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6() [all …]
|
/linux-4.1.27/net/ipv6/ |
D | ip6_udp_tunnel.c | 73 struct ipv6hdr *ip6h; in udp_tunnel6_xmit_skb() local 91 __skb_push(skb, sizeof(*ip6h)); in udp_tunnel6_xmit_skb() 93 ip6h = ipv6_hdr(skb); in udp_tunnel6_xmit_skb() 94 ip6_flow_hdr(ip6h, prio, htonl(0)); in udp_tunnel6_xmit_skb() 95 ip6h->payload_len = htons(skb->len); in udp_tunnel6_xmit_skb() 96 ip6h->nexthdr = IPPROTO_UDP; in udp_tunnel6_xmit_skb() 97 ip6h->hop_limit = ttl; in udp_tunnel6_xmit_skb() 98 ip6h->daddr = *daddr; in udp_tunnel6_xmit_skb() 99 ip6h->saddr = *saddr; in udp_tunnel6_xmit_skb()
|
D | netfilter.c | 136 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum() local 143 if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in nf_ip6_checksum() 154 csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in nf_ip6_checksum() 170 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum_partial() local 181 skb->csum = ~csum_unfold(csum_ipv6_magic(&ip6h->saddr, in nf_ip6_checksum_partial() 182 &ip6h->daddr, in nf_ip6_checksum_partial()
|
D | xfrm6_mode_beet.c | 82 struct ipv6hdr *ip6h; in xfrm6_beet_input() local 96 ip6h = ipv6_hdr(skb); in xfrm6_beet_input() 97 ip6h->payload_len = htons(skb->len - size); in xfrm6_beet_input() 98 ip6h->daddr = x->sel.daddr.in6; in xfrm6_beet_input() 99 ip6h->saddr = x->sel.saddr.in6; in xfrm6_beet_input()
|
D | ah6.c | 526 struct ipv6hdr *ip6h; in ah6_input() local 569 ip6h = ipv6_hdr(skb); in ah6_input() 590 memcpy(work_iph, ip6h, hdr_len); in ah6_input() 594 if (ipv6_clear_mutable_options(ip6h, hdr_len, XFRM_POLICY_IN)) in ah6_input() 597 ip6h->priority = 0; in ah6_input() 598 ip6h->flow_lbl[0] = 0; in ah6_input() 599 ip6h->flow_lbl[1] = 0; in ah6_input() 600 ip6h->flow_lbl[2] = 0; in ah6_input() 601 ip6h->hop_limit = 0; in ah6_input()
|
D | tcp_ipv6.c | 597 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_md5_hash_skb() local 598 saddr = &ip6h->saddr; in tcp_v6_md5_hash_skb() 599 daddr = &ip6h->daddr; in tcp_v6_md5_hash_skb() 635 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_inbound_md5_hash() local 640 hash_expected = tcp_v6_md5_do_lookup(sk, &ip6h->saddr); in tcp_v6_inbound_md5_hash() 665 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash() 666 &ip6h->daddr, ntohs(th->dest)); in tcp_v6_inbound_md5_hash()
|
D | datagram.c | 423 const struct ipv6hdr *ip6h = container_of((struct in6_addr *)(nh + serr->addr_offset), in ipv6_recv_error() local 425 sin->sin6_addr = ip6h->daddr; in ipv6_recv_error() 427 sin->sin6_flowinfo = ip6_flowinfo(ip6h); in ipv6_recv_error()
|
D | raw.c | 372 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data; in raw6_icmp_error() local 373 saddr = &ip6h->saddr; in raw6_icmp_error() 374 daddr = &ip6h->daddr; in raw6_icmp_error()
|
/linux-4.1.27/net/ipv6/netfilter/ |
D | nf_reject_ipv6.c | 71 struct ipv6hdr *ip6h; in nf_reject_ip6hdr_put() local 78 ip6h = ipv6_hdr(nskb); in nf_reject_ip6hdr_put() 79 ip6_flow_hdr(ip6h, tclass, 0); in nf_reject_ip6hdr_put() 80 ip6h->hop_limit = hoplimit; in nf_reject_ip6hdr_put() 81 ip6h->nexthdr = protocol; in nf_reject_ip6hdr_put() 82 ip6h->saddr = oip6h->daddr; in nf_reject_ip6hdr_put() 83 ip6h->daddr = oip6h->saddr; in nf_reject_ip6hdr_put() 87 return ip6h; in nf_reject_ip6hdr_put() 140 struct ipv6hdr *ip6h; in nf_send_reset6() local 184 ip6h = nf_reject_ip6hdr_put(nskb, oldskb, IPPROTO_TCP, in nf_send_reset6() [all …]
|
/linux-4.1.27/net/sched/ |
D | act_csum.c | 155 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_icmp() local 161 ip6h = ipv6_hdr(skb); in tcf_csum_ipv6_icmp() 164 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_icmp() 198 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_tcp() local 204 ip6h = ipv6_hdr(skb); in tcf_csum_ipv6_tcp() 207 tcph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_tcp() 273 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_udp() local 287 ip6h = ipv6_hdr(skb); in tcf_csum_ipv6_udp() 308 udph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ul, in tcf_csum_ipv6_udp() 419 struct ipv6hdr *ip6h; in tcf_csum_ipv6() local [all …]
|
/linux-4.1.27/net/netfilter/ |
D | xt_hl.c | 50 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in hl_mt6() local 54 return ip6h->hop_limit == info->hop_limit; in hl_mt6() 56 return ip6h->hop_limit != info->hop_limit; in hl_mt6() 58 return ip6h->hop_limit < info->hop_limit; in hl_mt6() 60 return ip6h->hop_limit > info->hop_limit; in hl_mt6()
|
D | xt_HL.c | 71 struct ipv6hdr *ip6h; in hl_tg6() local 78 ip6h = ipv6_hdr(skb); in hl_tg6() 85 new_hl = ip6h->hop_limit + info->hop_limit; in hl_tg6() 90 new_hl = ip6h->hop_limit - info->hop_limit; in hl_tg6() 95 new_hl = ip6h->hop_limit; in hl_tg6() 99 ip6h->hop_limit = new_hl; in hl_tg6()
|
/linux-4.1.27/drivers/net/ipvlan/ |
D | ipvlan_core.c | 158 struct ipv6hdr *ip6h; in ipvlan_get_L3_hdr() local 160 if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h)))) in ipvlan_get_L3_hdr() 163 ip6h = ipv6_hdr(skb); in ipvlan_get_L3_hdr() 164 if (ip6h->version != 6) in ipvlan_get_L3_hdr() 168 lyr3h = ip6h; in ipvlan_get_L3_hdr() 170 if (ipv6_addr_any(&ip6h->saddr) && in ipvlan_get_L3_hdr() 171 ip6h->nexthdr == NEXTHDR_ICMP) { in ipvlan_get_L3_hdr() 173 lyr3h = ip6h + 1; in ipvlan_get_L3_hdr() 294 struct ipv6hdr *ip6h; in ipvlan_addr_lookup() local 297 ip6h = (struct ipv6hdr *)lyr3h; in ipvlan_addr_lookup() [all …]
|
/linux-4.1.27/net/core/ |
D | netpoll.c | 381 struct ipv6hdr *ip6h; in netpoll_send_udp() local 385 ip_len = udp_len + sizeof(*ip6h); in netpoll_send_udp() 415 skb_push(skb, sizeof(*ip6h)); in netpoll_send_udp() 417 ip6h = ipv6_hdr(skb); in netpoll_send_udp() 420 put_unaligned(0x60, (unsigned char *)ip6h); in netpoll_send_udp() 421 ip6h->flow_lbl[0] = 0; in netpoll_send_udp() 422 ip6h->flow_lbl[1] = 0; in netpoll_send_udp() 423 ip6h->flow_lbl[2] = 0; in netpoll_send_udp() 425 ip6h->payload_len = htons(sizeof(struct udphdr) + len); in netpoll_send_udp() 426 ip6h->nexthdr = IPPROTO_UDP; in netpoll_send_udp() [all …]
|
/linux-4.1.27/net/bridge/ |
D | br_multicast.c | 420 struct ipv6hdr *ip6h; in br_ip6_multicast_alloc_query() local 426 skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*ip6h) + in br_ip6_multicast_alloc_query() 443 ip6h = ipv6_hdr(skb); in br_ip6_multicast_alloc_query() 445 *(__force __be32 *)ip6h = htonl(0x60000000); in br_ip6_multicast_alloc_query() 446 ip6h->payload_len = htons(8 + sizeof(*mldq)); in br_ip6_multicast_alloc_query() 447 ip6h->nexthdr = IPPROTO_HOPOPTS; in br_ip6_multicast_alloc_query() 448 ip6h->hop_limit = 1; in br_ip6_multicast_alloc_query() 449 ipv6_addr_set(&ip6h->daddr, htonl(0xff020000), 0, 0, htonl(1)); in br_ip6_multicast_alloc_query() 450 if (ipv6_dev_get_saddr(dev_net(br->dev), br->dev, &ip6h->daddr, 0, in br_ip6_multicast_alloc_query() 451 &ip6h->saddr)) { in br_ip6_multicast_alloc_query() [all …]
|
/linux-4.1.27/net/bridge/netfilter/ |
D | nft_reject_bridge.c | 180 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_br_csum_ok() local 183 u8 proto = ip6h->nexthdr; in reject6_br_csum_ok() 191 if (ip6h->payload_len && in reject6_br_csum_ok() 192 pskb_trim_rcsum(skb, ntohs(ip6h->payload_len) + sizeof(*ip6h))) in reject6_br_csum_ok() 195 thoff = ipv6_skip_exthdr(skb, ((u8*)(ip6h+1) - skb->data), &proto, &fo); in reject6_br_csum_ok()
|
/linux-4.1.27/net/ipv4/ |
D | tcp_fastopen.c | 111 const struct ipv6hdr *ip6h = ipv6_hdr(syn); in tcp_fastopen_cookie_gen() local 114 if (__tcp_fastopen_cookie_gen(&ip6h->saddr, &tmp)) { in tcp_fastopen_cookie_gen() 119 buf->s6_addr32[i] ^= ip6h->daddr.s6_addr32[i]; in tcp_fastopen_cookie_gen()
|
/linux-4.1.27/net/netfilter/ipvs/ |
D | ip_vs_core.c | 954 struct ipv6hdr _ip6h, *ip6h; /* The ip header contained within ICMP */ in ip_vs_out_icmp_v6() local 989 ip6h = skb_header_pointer(skb, ciph.len, sizeof(_ip6h), &_ip6h); in ip_vs_out_icmp_v6() 990 if (ip6h == NULL) in ip_vs_out_icmp_v6() 992 ciph.saddr.in6 = ip6h->saddr; /* conn_out_get() handles reverse order */ in ip_vs_out_icmp_v6() 993 ciph.daddr.in6 = ip6h->daddr; in ip_vs_out_icmp_v6() 1514 struct ipv6hdr _ip6h, *ip6h; in ip_vs_in_icmp_v6() local 1552 ip6h = skb_header_pointer(skb, ciph.len, sizeof(_ip6h), &_ip6h); in ip_vs_in_icmp_v6() 1553 if (ip6h == NULL) in ip_vs_in_icmp_v6() 1555 ciph.saddr.in6 = ip6h->saddr; /* conn_in_get() handles reverse order */ in ip_vs_in_icmp_v6() 1556 ciph.daddr.in6 = ip6h->daddr; in ip_vs_in_icmp_v6()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 1109 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph; in hwcsum() local 1111 if (ip6h->nexthdr == IPPROTO_TCP) in hwcsum() 1113 else if (ip6h->nexthdr == IPPROTO_UDP) in hwcsum()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 1056 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph; in hwcsum() local 1058 if (ip6h->nexthdr == IPPROTO_TCP) in hwcsum() 1060 else if (ip6h->nexthdr == IPPROTO_UDP) in hwcsum()
|
/linux-4.1.27/drivers/s390/net/ |
D | qeth_l3_main.c | 2897 struct ipv6hdr *ip6h = ipv6_hdr(skb); in qeth_tso_fill_header() local 2915 ip6h->payload_len = 0; in qeth_tso_fill_header() 2916 tcph->check = ~csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in qeth_tso_fill_header()
|
/linux-4.1.27/drivers/net/ethernet/ |
D | jme.c | 2108 struct ipv6hdr *ip6h = ipv6_hdr(skb); in jme_tx_tso() local 2110 tcp_hdr(skb)->check = ~csum_ipv6_magic(&ip6h->saddr, in jme_tx_tso() 2111 &ip6h->daddr, 0, in jme_tx_tso()
|
/linux-4.1.27/drivers/net/ethernet/marvell/ |
D | mvneta.c | 1413 struct ipv6hdr *ip6h = ipv6_hdr(skb); in mvneta_skb_tx_csum() local 1418 l4_proto = ip6h->nexthdr; in mvneta_skb_tx_csum()
|
D | mvpp2.c | 4968 struct ipv6hdr *ip6h = ipv6_hdr(skb); in mvpp2_skb_tx_csum() local 4973 l4_proto = ip6h->nexthdr; in mvpp2_skb_tx_csum()
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 1008 struct ipv6hdr *ip6h = (struct ipv6hdr *)(skb->data + offset); in be_ipv6_exthdr_check() local 1011 if (ip6h->nexthdr != NEXTHDR_TCP && in be_ipv6_exthdr_check() 1012 ip6h->nexthdr != NEXTHDR_UDP) { in be_ipv6_exthdr_check()
|