/net/netfilter/ |
D | xt_NFQUEUE.c | 57 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in hash_v6() local 60 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6() 61 (__force u32)ip6h->daddr.s6_addr32[3]) { in hash_v6() 62 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6() 63 b = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6() 65 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6() 66 a = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6() 69 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6() 70 (__force u32)ip6h->daddr.s6_addr32[1]) in hash_v6() 71 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6() [all …]
|
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()
|
/net/sched/ |
D | act_csum.c | 173 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_icmp() local 179 ip6h = ipv6_hdr(skb); in tcf_csum_ipv6_icmp() 182 icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_icmp() 216 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_tcp() local 222 ip6h = ipv6_hdr(skb); in tcf_csum_ipv6_tcp() 225 tcph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in tcf_csum_ipv6_tcp() 291 const struct ipv6hdr *ip6h; in tcf_csum_ipv6_udp() local 305 ip6h = ipv6_hdr(skb); in tcf_csum_ipv6_udp() 326 udph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ul, in tcf_csum_ipv6_udp() 437 struct ipv6hdr *ip6h; in tcf_csum_ipv6() local [all …]
|
/net/ipv6/ |
D | netfilter.c | 135 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum() local 142 if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in nf_ip6_checksum() 153 csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, in nf_ip6_checksum() 169 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum_partial() local 180 skb->csum = ~csum_unfold(csum_ipv6_magic(&ip6h->saddr, in nf_ip6_checksum_partial() 181 &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 = *(struct in6_addr *)&x->sel.daddr.a6; in xfrm6_beet_input() 99 ip6h->saddr = *(struct in6_addr *)&x->sel.saddr.a6; in xfrm6_beet_input()
|
D | ah6.c | 511 struct ipv6hdr *ip6h; in ah6_input() local 550 ip6h = ipv6_hdr(skb); in ah6_input() 563 memcpy(work_iph, ip6h, hdr_len); in ah6_input() 567 if (ipv6_clear_mutable_options(ip6h, hdr_len, XFRM_POLICY_IN)) in ah6_input() 570 ip6h->priority = 0; in ah6_input() 571 ip6h->flow_lbl[0] = 0; in ah6_input() 572 ip6h->flow_lbl[1] = 0; in ah6_input() 573 ip6h->flow_lbl[2] = 0; in ah6_input() 574 ip6h->hop_limit = 0; in ah6_input()
|
D | tcp_ipv6.c | 634 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_md5_hash_skb() local 635 saddr = &ip6h->saddr; in tcp_v6_md5_hash_skb() 636 daddr = &ip6h->daddr; in tcp_v6_md5_hash_skb() 672 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_inbound_md5_hash() local 677 hash_expected = tcp_v6_md5_do_lookup(sk, &ip6h->saddr); in tcp_v6_inbound_md5_hash() 702 &ip6h->saddr, ntohs(th->source), in tcp_v6_inbound_md5_hash() 703 &ip6h->daddr, ntohs(th->dest)); in tcp_v6_inbound_md5_hash()
|
D | datagram.c | 362 const struct ipv6hdr *ip6h = container_of((struct in6_addr *)(nh + serr->addr_offset), in ipv6_recv_error() local 364 sin->sin6_addr = ip6h->daddr; in ipv6_recv_error() 366 sin->sin6_flowinfo = ip6_flowinfo(ip6h); in ipv6_recv_error()
|
D | raw.c | 362 const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data; in raw6_icmp_error() local 363 saddr = &ip6h->saddr; in raw6_icmp_error() 364 daddr = &ip6h->daddr; in raw6_icmp_error()
|
/net/ipv6/netfilter/ |
D | ip6t_REJECT.c | 49 struct ipv6hdr *ip6h; in send_reset() local 130 ip6h = ipv6_hdr(nskb); in send_reset() 131 ip6_flow_hdr(ip6h, tclass, 0); in send_reset() 132 ip6h->hop_limit = ip6_dst_hoplimit(dst); in send_reset() 133 ip6h->nexthdr = IPPROTO_TCP; in send_reset() 134 ip6h->saddr = oip6h->daddr; in send_reset() 135 ip6h->daddr = oip6h->saddr; in send_reset()
|
/net/bridge/ |
D | br_multicast.c | 415 struct ipv6hdr *ip6h; in br_ip6_multicast_alloc_query() local 421 skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*ip6h) + in br_ip6_multicast_alloc_query() 438 ip6h = ipv6_hdr(skb); in br_ip6_multicast_alloc_query() 440 *(__force __be32 *)ip6h = htonl(0x60000000); in br_ip6_multicast_alloc_query() 441 ip6h->payload_len = htons(8 + sizeof(*mldq)); in br_ip6_multicast_alloc_query() 442 ip6h->nexthdr = IPPROTO_HOPOPTS; in br_ip6_multicast_alloc_query() 443 ip6h->hop_limit = 1; in br_ip6_multicast_alloc_query() 444 ipv6_addr_set(&ip6h->daddr, htonl(0xff020000), 0, 0, htonl(1)); in br_ip6_multicast_alloc_query() 445 if (ipv6_dev_get_saddr(dev_net(br->dev), br->dev, &ip6h->daddr, 0, in br_ip6_multicast_alloc_query() 446 &ip6h->saddr)) { in br_ip6_multicast_alloc_query() [all …]
|
/net/core/ |
D | netpoll.c | 432 struct ipv6hdr *ip6h; in netpoll_send_udp() local 436 ip_len = udp_len + sizeof(*ip6h); in netpoll_send_udp() 466 skb_push(skb, sizeof(*ip6h)); in netpoll_send_udp() 468 ip6h = ipv6_hdr(skb); in netpoll_send_udp() 471 put_unaligned(0x60, (unsigned char *)ip6h); in netpoll_send_udp() 472 ip6h->flow_lbl[0] = 0; in netpoll_send_udp() 473 ip6h->flow_lbl[1] = 0; in netpoll_send_udp() 474 ip6h->flow_lbl[2] = 0; in netpoll_send_udp() 476 ip6h->payload_len = htons(sizeof(struct udphdr) + len); in netpoll_send_udp() 477 ip6h->nexthdr = IPPROTO_UDP; in netpoll_send_udp() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_core.c | 918 struct ipv6hdr _ip6h, *ip6h; /* The ip header contained within ICMP */ in ip_vs_out_icmp_v6() local 953 ip6h = skb_header_pointer(skb, ciph.len, sizeof(_ip6h), &_ip6h); in ip_vs_out_icmp_v6() 954 if (ip6h == NULL) in ip_vs_out_icmp_v6() 956 ciph.saddr.in6 = ip6h->saddr; /* conn_out_get() handles reverse order */ in ip_vs_out_icmp_v6() 957 ciph.daddr.in6 = ip6h->daddr; in ip_vs_out_icmp_v6() 1461 struct ipv6hdr _ip6h, *ip6h; in ip_vs_in_icmp_v6() local 1499 ip6h = skb_header_pointer(skb, ciph.len, sizeof(_ip6h), &_ip6h); in ip_vs_in_icmp_v6() 1500 if (ip6h == NULL) in ip_vs_in_icmp_v6() 1502 ciph.saddr.in6 = ip6h->saddr; /* conn_in_get() handles reverse order */ in ip_vs_in_icmp_v6() 1503 ciph.daddr.in6 = ip6h->daddr; in ip_vs_in_icmp_v6()
|