ip6h 606 drivers/infiniband/core/verbs.c const struct ipv6hdr *ip6h = (struct ipv6hdr *)&hdr->ibgrh; ip6h 611 drivers/infiniband/core/verbs.c if (ip6h->version != 6) ip6h 384 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ipv6hdr *ip6h; ip6h 413 drivers/infiniband/hw/i40iw/i40iw_cm.c packetsize = sizeof(*ip6h) + sizeof(*tcph); ip6h 459 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h = (struct ipv6hdr *)buf; ip6h 460 drivers/infiniband/hw/i40iw/i40iw_cm.c buf += sizeof(*ip6h); ip6h 474 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->version = 6; ip6h 475 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->priority = cm_node->tos >> 4; ip6h 476 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->flow_lbl[0] = cm_node->tos << 4; ip6h 477 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->flow_lbl[1] = 0; ip6h 478 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->flow_lbl[2] = 0; ip6h 479 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->payload_len = htons(packetsize - sizeof(*ip6h)); ip6h 480 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->nexthdr = 6; ip6h 481 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->hop_limit = 128; ip6h 482 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_copy_ip_htonl(ip6h->saddr.in6_u.u6_addr32, ip6h 484 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_copy_ip_htonl(ip6h->daddr.in6_u.u6_addr32, ip6h 3128 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ipv6hdr *ip6h; ip6h 3168 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h = (struct ipv6hdr *)rbuf->iph; ip6h 3170 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->daddr.in6_u.u6_addr32); ip6h 3172 drivers/infiniband/hw/i40iw/i40iw_cm.c ip6h->saddr.in6_u.u6_addr32); ip6h 3174 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_info.tos = (ip6h->priority << 4) | (ip6h->flow_lbl[0] >> 4); ip6h 1403 drivers/infiniband/hw/i40iw/i40iw_utils.c struct ipv6hdr *ip6h; ip6h 1413 drivers/infiniband/hw/i40iw/i40iw_utils.c ip6h = (struct ipv6hdr *)buf->iph; ip6h 1414 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_copy_ip_ntohl(loc_addr, ip6h->daddr.in6_u.u6_addr32); ip6h 1415 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_copy_ip_ntohl(rem_addr, ip6h->saddr.in6_u.u6_addr32); ip6h 1460 drivers/infiniband/hw/i40iw/i40iw_utils.c struct ipv6hdr *ip6h; ip6h 1483 drivers/infiniband/hw/i40iw/i40iw_utils.c ip6h = (struct ipv6hdr *)buf->iph; ip6h 1484 drivers/infiniband/hw/i40iw/i40iw_utils.c pkt_len = ntohs(ip6h->payload_len) + iphlen; ip6h 42 drivers/infiniband/sw/rxe/rxe_icrc.c struct ipv6hdr *ip6h = NULL; ip6h 72 drivers/infiniband/sw/rxe/rxe_icrc.c ip6h = (struct ipv6hdr *)pshdr; ip6h 73 drivers/infiniband/sw/rxe/rxe_icrc.c udph = (struct udphdr *)(ip6h + 1); ip6h 75 drivers/infiniband/sw/rxe/rxe_icrc.c memset(ip6h->flow_lbl, 0xff, sizeof(ip6h->flow_lbl)); ip6h 76 drivers/infiniband/sw/rxe/rxe_icrc.c ip6h->priority = 0xf; ip6h 77 drivers/infiniband/sw/rxe/rxe_icrc.c ip6h->hop_limit = 0xff; ip6h 324 drivers/infiniband/sw/rxe/rxe_net.c struct ipv6hdr *ip6h; ip6h 331 drivers/infiniband/sw/rxe/rxe_net.c __skb_push(skb, sizeof(*ip6h)); ip6h 333 drivers/infiniband/sw/rxe/rxe_net.c ip6h = ipv6_hdr(skb); ip6h 334 drivers/infiniband/sw/rxe/rxe_net.c ip6_flow_hdr(ip6h, prio, htonl(0)); ip6h 335 drivers/infiniband/sw/rxe/rxe_net.c ip6h->payload_len = htons(skb->len); ip6h 336 drivers/infiniband/sw/rxe/rxe_net.c ip6h->nexthdr = proto; ip6h 337 drivers/infiniband/sw/rxe/rxe_net.c ip6h->hop_limit = ttl; ip6h 338 drivers/infiniband/sw/rxe/rxe_net.c ip6h->daddr = *daddr; ip6h 339 drivers/infiniband/sw/rxe/rxe_net.c ip6h->saddr = *saddr; ip6h 340 drivers/infiniband/sw/rxe/rxe_net.c ip6h->payload_len = htons(skb->len - sizeof(*ip6h)); ip6h 1102 drivers/net/ethernet/chelsio/cxgb4vf/sge.c const struct ipv6hdr *ip6h = (const struct ipv6hdr *)iph; ip6h 1104 drivers/net/ethernet/chelsio/cxgb4vf/sge.c if (ip6h->nexthdr == IPPROTO_TCP) ip6h 1106 drivers/net/ethernet/chelsio/cxgb4vf/sge.c else if (ip6h->nexthdr == IPPROTO_UDP) ip6h 1098 drivers/net/ethernet/emulex/benet/be_main.c struct ipv6hdr *ip6h = (struct ipv6hdr *)(skb->data + offset); ip6h 1101 drivers/net/ethernet/emulex/benet/be_main.c if (ip6h->nexthdr != NEXTHDR_TCP && ip6h 1102 drivers/net/ethernet/emulex/benet/be_main.c ip6h->nexthdr != NEXTHDR_UDP) { ip6h 2080 drivers/net/ethernet/jme.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 2082 drivers/net/ethernet/jme.c tcp_hdr(skb)->check = ~csum_ipv6_magic(&ip6h->saddr, ip6h 2083 drivers/net/ethernet/jme.c &ip6h->daddr, 0, ip6h 1861 drivers/net/ethernet/marvell/mvneta.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 1866 drivers/net/ethernet/marvell/mvneta.c l4_proto = ip6h->nexthdr; ip6h 2900 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 2905 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c l4_proto = ip6h->nexthdr; ip6h 336 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c struct ipv6hdr *ip6h; ip6h 395 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip6h = (struct ipv6hdr *)gen_eth_tnl_hdr(encap_header, route_dev, e, ip6h 399 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip6_flow_hdr(ip6h, tun_key->tos, 0); ip6h 401 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip6h->hop_limit = ttl; ip6h 402 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip6h->daddr = fl6.daddr; ip6h 403 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c ip6h->saddr = fl6.saddr; ip6h 406 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c err = mlx5e_gen_ip_tunnel_header((char *)ip6h + sizeof(struct ipv6hdr), ip6h 407 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c &ip6h->nexthdr, e); ip6h 1679 drivers/net/ethernet/qlogic/qed/qed_iwarp.c struct ipv6hdr *ip6h; ip6h 1734 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ip6h = (struct ipv6hdr *)iph; ip6h 1736 drivers/net/ethernet/qlogic/qed/qed_iwarp.c if (ip6h->nexthdr != IPPROTO_TCP) { ip6h 1745 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ntohl(ip6h->daddr.in6_u.u6_addr32[i]); ip6h 1747 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ntohl(ip6h->saddr.in6_u.u6_addr32[i]); ip6h 1751 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ip_hlen = sizeof(*ip6h); ip6h 1752 drivers/net/ethernet/qlogic/qed/qed_iwarp.c *payload_len = ntohs(ip6h->payload_len); ip6h 121 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct ipv6hdr *ip6h; ip6h 125 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ip6h = (struct ipv6hdr *)(skb->data); ip6h 128 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c csum_field = rmnet_map_get_csum_field(ip6h->nexthdr, txporthdr); ip6h 137 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ~ntohs((__force __be16)ip_compute_csum(ip6h, ip6h 142 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c length = (ip6h->nexthdr == IPPROTO_UDP) ? ip6h 144 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c ntohs(ip6h->payload_len); ip6h 145 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c pseudo_csum = ~(csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 146 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c length, ip6h->nexthdr, 0)); ip6h 155 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c switch (ip6h->nexthdr) { ip6h 225 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct ipv6hdr *ip6h = (struct ipv6hdr *)ip6hdr; ip6h 231 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (ip6h->nexthdr == IPPROTO_TCP || ip6h->nexthdr == IPPROTO_UDP) { ip6h 232 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c csum = (u16 *)rmnet_map_get_csum_field(ip6h->nexthdr, txphdr); ip6h 242 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c struct ipv6hdr *ip6h = (struct ipv6hdr *)ip6hdr; ip6h 251 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c if (ip6h->nexthdr == IPPROTO_UDP) ip6h 342 drivers/net/ethernet/sun/sunvnet_common.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 347 drivers/net/ethernet/sun/sunvnet_common.c if (ip6h->nexthdr != IPPROTO_TCP && ip6h 348 drivers/net/ethernet/sun/sunvnet_common.c ip6h->nexthdr != IPPROTO_UDP) ip6h 353 drivers/net/ethernet/sun/sunvnet_common.c if (ip6h->nexthdr == IPPROTO_TCP) { ip6h 358 drivers/net/ethernet/sun/sunvnet_common.c ptcp->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 361 drivers/net/ethernet/sun/sunvnet_common.c } else if (ip6h->nexthdr == IPPROTO_UDP) { ip6h 366 drivers/net/ethernet/sun/sunvnet_common.c pudp->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 1186 drivers/net/ethernet/sun/sunvnet_common.c struct ipv6hdr *ip6h = ipv6_hdr(nskb); ip6h 1188 drivers/net/ethernet/sun/sunvnet_common.c if (ip6h->nexthdr == IPPROTO_TCP || ip6h 1189 drivers/net/ethernet/sun/sunvnet_common.c ip6h->nexthdr == IPPROTO_UDP) { ip6h 1190 drivers/net/ethernet/sun/sunvnet_common.c csum = csum_ipv6_magic(&ip6h->saddr, ip6h 1191 drivers/net/ethernet/sun/sunvnet_common.c &ip6h->daddr, ip6h 1193 drivers/net/ethernet/sun/sunvnet_common.c ip6h->nexthdr, ip6h 191 drivers/net/geneve.c struct ipv6hdr *ip6h; ip6h 194 drivers/net/geneve.c ip6h = ipv6_hdr(skb); /* outer IPv6 header... */ ip6h 201 drivers/net/geneve.c addr6 = ip6h->saddr; ip6h 423 drivers/net/geneve.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 430 drivers/net/geneve.c addr6 = ip6h->daddr; ip6h 172 drivers/net/ipvlan/ipvlan_core.c struct ipv6hdr *ip6h; ip6h 174 drivers/net/ipvlan/ipvlan_core.c if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h)))) ip6h 177 drivers/net/ipvlan/ipvlan_core.c ip6h = ipv6_hdr(skb); ip6h 178 drivers/net/ipvlan/ipvlan_core.c if (ip6h->version != 6) ip6h 182 drivers/net/ipvlan/ipvlan_core.c lyr3h = ip6h; ip6h 184 drivers/net/ipvlan/ipvlan_core.c if (ipv6_addr_any(&ip6h->saddr) && ip6h 185 drivers/net/ipvlan/ipvlan_core.c ip6h->nexthdr == NEXTHDR_ICMP) { ip6h 188 drivers/net/ipvlan/ipvlan_core.c if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h) + sizeof(*icmph)))) ip6h 191 drivers/net/ipvlan/ipvlan_core.c ip6h = ipv6_hdr(skb); ip6h 192 drivers/net/ipvlan/ipvlan_core.c icmph = (struct icmp6hdr *)(ip6h + 1); ip6h 196 drivers/net/ipvlan/ipvlan_core.c if (unlikely(!pskb_may_pull(skb, sizeof(*ip6h) + sizeof(*icmph) ip6h 200 drivers/net/ipvlan/ipvlan_core.c ip6h = ipv6_hdr(skb); ip6h 201 drivers/net/ipvlan/ipvlan_core.c icmph = (struct icmp6hdr *)(ip6h + 1); ip6h 362 drivers/net/ipvlan/ipvlan_core.c struct ipv6hdr *ip6h; ip6h 365 drivers/net/ipvlan/ipvlan_core.c ip6h = (struct ipv6hdr *)lyr3h; ip6h 366 drivers/net/ipvlan/ipvlan_core.c i6addr = use_dest ? &ip6h->daddr : &ip6h->saddr; ip6h 456 drivers/net/ipvlan/ipvlan_core.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 463 drivers/net/ipvlan/ipvlan_core.c .daddr = ip6h->daddr, ip6h 464 drivers/net/ipvlan/ipvlan_core.c .saddr = ip6h->saddr, ip6h 466 drivers/net/ipvlan/ipvlan_core.c .flowlabel = ip6_flowinfo(ip6h), ip6h 468 drivers/net/ipvlan/ipvlan_core.c .flowi6_proto = ip6h->nexthdr, ip6h 64 drivers/net/ipvlan/ipvlan_l3s.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 68 drivers/net/ipvlan/ipvlan_l3s.c .daddr = ip6h->daddr, ip6h 69 drivers/net/ipvlan/ipvlan_l3s.c .saddr = ip6h->saddr, ip6h 70 drivers/net/ipvlan/ipvlan_l3s.c .flowlabel = ip6_flowinfo(ip6h), ip6h 72 drivers/net/ipvlan/ipvlan_l3s.c .flowi6_proto = ip6h->nexthdr, ip6h 210 include/net/dst_metadata.h const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 212 include/net/dst_metadata.h return __ipv6_tun_set_dst(&ip6h->saddr, &ip6h->daddr, ip6h 213 include/net/dst_metadata.h ipv6_get_dsfield(ip6h), ip6h->hop_limit, ip6h 214 include/net/dst_metadata.h 0, ip6_flowlabel(ip6h), flags, tunnel_id, ip6h 57 include/net/netfilter/nf_queue.h static inline u32 hash_v6(const struct ipv6hdr *ip6h, u32 initval) ip6h 61 include/net/netfilter/nf_queue.h if ((__force u32)ip6h->saddr.s6_addr32[3] < ip6h 62 include/net/netfilter/nf_queue.h (__force u32)ip6h->daddr.s6_addr32[3]) { ip6h 63 include/net/netfilter/nf_queue.h a = (__force u32) ip6h->saddr.s6_addr32[3]; ip6h 64 include/net/netfilter/nf_queue.h b = (__force u32) ip6h->daddr.s6_addr32[3]; ip6h 66 include/net/netfilter/nf_queue.h b = (__force u32) ip6h->saddr.s6_addr32[3]; ip6h 67 include/net/netfilter/nf_queue.h a = (__force u32) ip6h->daddr.s6_addr32[3]; ip6h 70 include/net/netfilter/nf_queue.h if ((__force u32)ip6h->saddr.s6_addr32[1] < ip6h 71 include/net/netfilter/nf_queue.h (__force u32)ip6h->daddr.s6_addr32[1]) ip6h 72 include/net/netfilter/nf_queue.h c = (__force u32) ip6h->saddr.s6_addr32[1]; ip6h 74 include/net/netfilter/nf_queue.h c = (__force u32) ip6h->daddr.s6_addr32[1]; ip6h 81 include/net/netfilter/nf_queue.h struct ipv6hdr *ip6h, _ip6h; ip6h 92 include/net/netfilter/nf_queue.h ip6h = skb_header_pointer(skb, skb_network_offset(skb), ip6h 93 include/net/netfilter/nf_queue.h sizeof(*ip6h), &_ip6h); ip6h 94 include/net/netfilter/nf_queue.h if (ip6h) ip6h 95 include/net/netfilter/nf_queue.h return hash_v6(ip6h, initval); ip6h 33 include/net/netfilter/nf_tables_ipv6.h struct ipv6hdr *ip6h, _ip6h; ip6h 39 include/net/netfilter/nf_tables_ipv6.h ip6h = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*ip6h), ip6h 41 include/net/netfilter/nf_tables_ipv6.h if (!ip6h) ip6h 44 include/net/netfilter/nf_tables_ipv6.h if (ip6h->version != 6) ip6h 47 include/net/netfilter/nf_tables_ipv6.h pkt_len = ntohs(ip6h->payload_len); ip6h 48 include/net/netfilter/nf_tables_ipv6.h if (pkt_len + sizeof(*ip6h) > skb->len) ip6h 30 lib/test_blackhole_dev.c struct ipv6hdr *ip6h; ip6h 56 lib/test_blackhole_dev.c ip6h = (struct ipv6hdr *)skb_push(skb, sizeof(struct ipv6hdr)); ip6h 58 lib/test_blackhole_dev.c ip6h->hop_limit = 32; ip6h 59 lib/test_blackhole_dev.c ip6h->payload_len = data_len + sizeof(struct udphdr); ip6h 60 lib/test_blackhole_dev.c ip6h->nexthdr = IPPROTO_UDP; ip6h 61 lib/test_blackhole_dev.c ip6h->saddr = in6addr_loopback; ip6h 62 lib/test_blackhole_dev.c ip6h->daddr = in6addr_loopback; ip6h 316 net/bridge/br_multicast.c struct ipv6hdr *ip6h; ip6h 326 net/bridge/br_multicast.c skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*ip6h) + ip6h 343 net/bridge/br_multicast.c ip6h = ipv6_hdr(skb); ip6h 345 net/bridge/br_multicast.c *(__force __be32 *)ip6h = htonl(0x60000000); ip6h 346 net/bridge/br_multicast.c ip6h->payload_len = htons(8 + mld_hdr_size); ip6h 347 net/bridge/br_multicast.c ip6h->nexthdr = IPPROTO_HOPOPTS; ip6h 348 net/bridge/br_multicast.c ip6h->hop_limit = 1; ip6h 349 net/bridge/br_multicast.c ipv6_addr_set(&ip6h->daddr, htonl(0xff020000), 0, 0, htonl(1)); ip6h 350 net/bridge/br_multicast.c if (ipv6_dev_get_saddr(dev_net(br->dev), br->dev, &ip6h->daddr, 0, ip6h 351 net/bridge/br_multicast.c &ip6h->saddr)) { ip6h 358 net/bridge/br_multicast.c ipv6_eth_mc_map(&ip6h->daddr, eth->h_dest); ip6h 360 net/bridge/br_multicast.c hopopt = (u8 *)(ip6h + 1); ip6h 370 net/bridge/br_multicast.c skb_put(skb, sizeof(*ip6h) + 8); ip6h 387 net/bridge/br_multicast.c mldq->mld_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 406 net/bridge/br_multicast.c mld2q->mld2q_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 220 net/bridge/netfilter/nft_reject_bridge.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 223 net/bridge/netfilter/nft_reject_bridge.c u8 proto = ip6h->nexthdr; ip6h 228 net/bridge/netfilter/nft_reject_bridge.c if (ip6h->payload_len && ip6h 229 net/bridge/netfilter/nft_reject_bridge.c pskb_trim_rcsum(skb, ntohs(ip6h->payload_len) + sizeof(*ip6h))) ip6h 232 net/bridge/netfilter/nft_reject_bridge.c ip6h = ipv6_hdr(skb); ip6h 233 net/bridge/netfilter/nft_reject_bridge.c thoff = ipv6_skip_exthdr(skb, ((u8*)(ip6h+1) - skb->data), &proto, &fo); ip6h 370 net/core/netpoll.c struct ipv6hdr *ip6h; ip6h 376 net/core/netpoll.c ip_len = udp_len + sizeof(*ip6h); ip6h 406 net/core/netpoll.c skb_push(skb, sizeof(*ip6h)); ip6h 408 net/core/netpoll.c ip6h = ipv6_hdr(skb); ip6h 411 net/core/netpoll.c put_unaligned(0x60, (unsigned char *)ip6h); ip6h 412 net/core/netpoll.c ip6h->flow_lbl[0] = 0; ip6h 413 net/core/netpoll.c ip6h->flow_lbl[1] = 0; ip6h 414 net/core/netpoll.c ip6h->flow_lbl[2] = 0; ip6h 416 net/core/netpoll.c ip6h->payload_len = htons(sizeof(struct udphdr) + len); ip6h 417 net/core/netpoll.c ip6h->nexthdr = IPPROTO_UDP; ip6h 418 net/core/netpoll.c ip6h->hop_limit = 32; ip6h 419 net/core/netpoll.c ip6h->saddr = np->local_ip.in6; ip6h 420 net/core/netpoll.c ip6h->daddr = np->remote_ip.in6; ip6h 130 net/ipv4/tcp_fastopen.c const struct ipv6hdr *ip6h = ipv6_hdr(syn); ip6h 132 net/ipv4/tcp_fastopen.c foc->val[0] = cpu_to_le64(siphash(&ip6h->saddr, ip6h 133 net/ipv4/tcp_fastopen.c sizeof(ip6h->saddr) + ip6h 134 net/ipv4/tcp_fastopen.c sizeof(ip6h->daddr), ip6h 521 net/ipv6/ah6.c struct ipv6hdr *ip6h; ip6h 564 net/ipv6/ah6.c ip6h = ipv6_hdr(skb); ip6h 587 net/ipv6/ah6.c memcpy(work_iph, ip6h, hdr_len); ip6h 591 net/ipv6/ah6.c if (ipv6_clear_mutable_options(ip6h, hdr_len, XFRM_POLICY_IN)) ip6h 594 net/ipv6/ah6.c ip6h->priority = 0; ip6h 595 net/ipv6/ah6.c ip6h->flow_lbl[0] = 0; ip6h 596 net/ipv6/ah6.c ip6h->flow_lbl[1] = 0; ip6h 597 net/ipv6/ah6.c ip6h->flow_lbl[2] = 0; ip6h 598 net/ipv6/ah6.c ip6h->hop_limit = 0; ip6h 470 net/ipv6/datagram.c const struct ipv6hdr *ip6h = container_of((struct in6_addr *)(nh + serr->addr_offset), ip6h 472 net/ipv6/datagram.c sin->sin6_addr = ip6h->daddr; ip6h 474 net/ipv6/datagram.c sin->sin6_flowinfo = ip6_flowinfo(ip6h); ip6h 35 net/ipv6/ila/ila_common.c static __wsum get_csum_diff(struct ipv6hdr *ip6h, struct ila_params *p) ip6h 37 net/ipv6/ila/ila_common.c return get_csum_diff_iaddr(ila_a2i(&ip6h->daddr), p); ip6h 78 net/ipv6/ila/ila_common.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 81 net/ipv6/ila/ila_common.c switch (ip6h->nexthdr) { ip6h 87 net/ipv6/ila/ila_common.c diff = get_csum_diff(ip6h, p); ip6h 98 net/ipv6/ila/ila_common.c diff = get_csum_diff(ip6h, p); ip6h 112 net/ipv6/ila/ila_common.c diff = get_csum_diff(ip6h, p); ip6h 123 net/ipv6/ila/ila_common.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 124 net/ipv6/ila/ila_common.c struct ila_addr *iaddr = ila_a2i(&ip6h->daddr); ip6h 63 net/ipv6/ila/ila_lwt.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 74 net/ipv6/ila/ila_lwt.c &ip6h->daddr); ip6h 636 net/ipv6/ila/ila_xlat.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 639 net/ipv6/ila/ila_xlat.c struct ila_addr *iaddr = ila_a2i(&ip6h->daddr); ip6h 89 net/ipv6/ip6_udp_tunnel.c struct ipv6hdr *ip6h; ip6h 104 net/ipv6/ip6_udp_tunnel.c __skb_push(skb, sizeof(*ip6h)); ip6h 106 net/ipv6/ip6_udp_tunnel.c ip6h = ipv6_hdr(skb); ip6h 107 net/ipv6/ip6_udp_tunnel.c ip6_flow_hdr(ip6h, prio, label); ip6h 108 net/ipv6/ip6_udp_tunnel.c ip6h->payload_len = htons(skb->len); ip6h 109 net/ipv6/ip6_udp_tunnel.c ip6h->nexthdr = IPPROTO_UDP; ip6h 110 net/ipv6/ip6_udp_tunnel.c ip6h->hop_limit = ttl; ip6h 111 net/ipv6/ip6_udp_tunnel.c ip6h->daddr = *daddr; ip6h 112 net/ipv6/ip6_udp_tunnel.c ip6h->saddr = *saddr; ip6h 16 net/ipv6/mcast_snoop.c const struct ipv6hdr *ip6h; ip6h 18 net/ipv6/mcast_snoop.c unsigned int offset = skb_network_offset(skb) + sizeof(*ip6h); ip6h 23 net/ipv6/mcast_snoop.c ip6h = ipv6_hdr(skb); ip6h 25 net/ipv6/mcast_snoop.c if (ip6h->version != 6) ip6h 28 net/ipv6/mcast_snoop.c len = offset + ntohs(ip6h->payload_len); ip6h 39 net/ipv6/mcast_snoop.c const struct ipv6hdr *ip6h; ip6h 44 net/ipv6/mcast_snoop.c ip6h = ipv6_hdr(skb); ip6h 46 net/ipv6/mcast_snoop.c if (ip6h->nexthdr != IPPROTO_HOPOPTS) ip6h 49 net/ipv6/mcast_snoop.c nexthdr = ip6h->nexthdr; ip6h 50 net/ipv6/mcast_snoop.c offset = skb_network_offset(skb) + sizeof(*ip6h); ip6h 67 net/ipv6/netfilter/nf_reject_ipv6.c struct ipv6hdr *ip6h; ip6h 74 net/ipv6/netfilter/nf_reject_ipv6.c ip6h = ipv6_hdr(nskb); ip6h 75 net/ipv6/netfilter/nf_reject_ipv6.c ip6_flow_hdr(ip6h, tclass, 0); ip6h 76 net/ipv6/netfilter/nf_reject_ipv6.c ip6h->hop_limit = hoplimit; ip6h 77 net/ipv6/netfilter/nf_reject_ipv6.c ip6h->nexthdr = protocol; ip6h 78 net/ipv6/netfilter/nf_reject_ipv6.c ip6h->saddr = oip6h->daddr; ip6h 79 net/ipv6/netfilter/nf_reject_ipv6.c ip6h->daddr = oip6h->saddr; ip6h 83 net/ipv6/netfilter/nf_reject_ipv6.c return ip6h; ip6h 137 net/ipv6/netfilter/nf_reject_ipv6.c struct ipv6hdr *ip6h; ip6h 185 net/ipv6/netfilter/nf_reject_ipv6.c ip6h = nf_reject_ip6hdr_put(nskb, oldskb, IPPROTO_TCP, ip6h 204 net/ipv6/netfilter/nf_reject_ipv6.c ip6h->payload_len = htons(sizeof(struct tcphdr)); ip6h 219 net/ipv6/netfilter/nf_reject_ipv6.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 227 net/ipv6/netfilter/nf_reject_ipv6.c proto = ip6h->nexthdr; ip6h 228 net/ipv6/netfilter/nf_reject_ipv6.c thoff = ipv6_skip_exthdr(skb, ((u8 *)(ip6h + 1) - skb->data), &proto, &fo); ip6h 375 net/ipv6/raw.c const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data; ip6h 376 net/ipv6/raw.c saddr = &ip6h->saddr; ip6h 377 net/ipv6/raw.c daddr = &ip6h->daddr; ip6h 665 net/ipv6/tcp_ipv6.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 666 net/ipv6/tcp_ipv6.c saddr = &ip6h->saddr; ip6h 667 net/ipv6/tcp_ipv6.c daddr = &ip6h->daddr; ip6h 706 net/ipv6/tcp_ipv6.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 711 net/ipv6/tcp_ipv6.c hash_expected = tcp_v6_md5_do_lookup(sk, &ip6h->saddr); ip6h 737 net/ipv6/tcp_ipv6.c &ip6h->saddr, ntohs(th->source), ip6h 738 net/ipv6/tcp_ipv6.c &ip6h->daddr, ntohs(th->dest)); ip6h 343 net/netfilter/nf_flow_table_ip.c static int nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, ip6h 347 net/netfilter/nf_flow_table_ip.c switch (ip6h->nexthdr) { ip6h 362 net/netfilter/nf_flow_table_ip.c struct sk_buff *skb, struct ipv6hdr *ip6h, ip6h 370 net/netfilter/nf_flow_table_ip.c addr = ip6h->saddr; ip6h 372 net/netfilter/nf_flow_table_ip.c ip6h->saddr = new_addr; ip6h 375 net/netfilter/nf_flow_table_ip.c addr = ip6h->daddr; ip6h 377 net/netfilter/nf_flow_table_ip.c ip6h->daddr = new_addr; ip6h 383 net/netfilter/nf_flow_table_ip.c return nf_flow_nat_ipv6_l4proto(skb, ip6h, thoff, &addr, &new_addr); ip6h 387 net/netfilter/nf_flow_table_ip.c struct sk_buff *skb, struct ipv6hdr *ip6h, ip6h 395 net/netfilter/nf_flow_table_ip.c addr = ip6h->daddr; ip6h 397 net/netfilter/nf_flow_table_ip.c ip6h->daddr = new_addr; ip6h 400 net/netfilter/nf_flow_table_ip.c addr = ip6h->saddr; ip6h 402 net/netfilter/nf_flow_table_ip.c ip6h->saddr = new_addr; ip6h 408 net/netfilter/nf_flow_table_ip.c return nf_flow_nat_ipv6_l4proto(skb, ip6h, thoff, &addr, &new_addr); ip6h 415 net/netfilter/nf_flow_table_ip.c struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 416 net/netfilter/nf_flow_table_ip.c unsigned int thoff = sizeof(*ip6h); ip6h 419 net/netfilter/nf_flow_table_ip.c (nf_flow_snat_port(flow, skb, thoff, ip6h->nexthdr, dir) < 0 || ip6h 420 net/netfilter/nf_flow_table_ip.c nf_flow_snat_ipv6(flow, skb, ip6h, thoff, dir) < 0)) ip6h 423 net/netfilter/nf_flow_table_ip.c (nf_flow_dnat_port(flow, skb, thoff, ip6h->nexthdr, dir) < 0 || ip6h 424 net/netfilter/nf_flow_table_ip.c nf_flow_dnat_ipv6(flow, skb, ip6h, thoff, dir) < 0)) ip6h 434 net/netfilter/nf_flow_table_ip.c struct ipv6hdr *ip6h; ip6h 437 net/netfilter/nf_flow_table_ip.c if (!pskb_may_pull(skb, sizeof(*ip6h))) ip6h 440 net/netfilter/nf_flow_table_ip.c ip6h = ipv6_hdr(skb); ip6h 442 net/netfilter/nf_flow_table_ip.c if (ip6h->nexthdr != IPPROTO_TCP && ip6h 443 net/netfilter/nf_flow_table_ip.c ip6h->nexthdr != IPPROTO_UDP) ip6h 446 net/netfilter/nf_flow_table_ip.c if (ip6h->hop_limit <= 1) ip6h 449 net/netfilter/nf_flow_table_ip.c thoff = sizeof(*ip6h); ip6h 453 net/netfilter/nf_flow_table_ip.c ip6h = ipv6_hdr(skb); ip6h 456 net/netfilter/nf_flow_table_ip.c tuple->src_v6 = ip6h->saddr; ip6h 457 net/netfilter/nf_flow_table_ip.c tuple->dst_v6 = ip6h->daddr; ip6h 461 net/netfilter/nf_flow_table_ip.c tuple->l4proto = ip6h->nexthdr; ip6h 478 net/netfilter/nf_flow_table_ip.c struct ipv6hdr *ip6h; ip6h 500 net/netfilter/nf_flow_table_ip.c sizeof(*ip6h))) ip6h 508 net/netfilter/nf_flow_table_ip.c if (skb_try_make_writable(skb, sizeof(*ip6h))) ip6h 515 net/netfilter/nf_flow_table_ip.c ip6h = ipv6_hdr(skb); ip6h 516 net/netfilter/nf_flow_table_ip.c ip6h->hop_limit--; ip6h 116 net/netfilter/nft_fwd_netdev.c struct ipv6hdr *ip6h; ip6h 122 net/netfilter/nft_fwd_netdev.c if (skb_try_make_writable(skb, sizeof(*ip6h))) { ip6h 126 net/netfilter/nft_fwd_netdev.c ip6h = ipv6_hdr(skb); ip6h 127 net/netfilter/nft_fwd_netdev.c ip6h->hop_limit--; ip6h 67 net/netfilter/utils.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 74 net/netfilter/utils.c if (!csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 85 net/netfilter/utils.c csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 101 net/netfilter/utils.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 112 net/netfilter/utils.c skb->csum = ~csum_unfold(csum_ipv6_magic(&ip6h->saddr, ip6h 113 net/netfilter/utils.c &ip6h->daddr, ip6h 68 net/netfilter/xt_HL.c struct ipv6hdr *ip6h; ip6h 72 net/netfilter/xt_HL.c if (skb_ensure_writable(skb, sizeof(*ip6h))) ip6h 75 net/netfilter/xt_HL.c ip6h = ipv6_hdr(skb); ip6h 82 net/netfilter/xt_HL.c new_hl = ip6h->hop_limit + info->hop_limit; ip6h 87 net/netfilter/xt_HL.c new_hl = ip6h->hop_limit - info->hop_limit; ip6h 92 net/netfilter/xt_HL.c new_hl = ip6h->hop_limit; ip6h 96 net/netfilter/xt_HL.c ip6h->hop_limit = new_hl; ip6h 47 net/netfilter/xt_hl.c const struct ipv6hdr *ip6h = ipv6_hdr(skb); ip6h 51 net/netfilter/xt_hl.c return ip6h->hop_limit == info->hop_limit; ip6h 53 net/netfilter/xt_hl.c return ip6h->hop_limit != info->hop_limit; ip6h 55 net/netfilter/xt_hl.c return ip6h->hop_limit < info->hop_limit; ip6h 57 net/netfilter/xt_hl.c return ip6h->hop_limit > info->hop_limit; ip6h 189 net/sched/act_csum.c const struct ipv6hdr *ip6h; ip6h 195 net/sched/act_csum.c ip6h = ipv6_hdr(skb); ip6h 198 net/sched/act_csum.c icmp6h->icmp6_cksum = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 235 net/sched/act_csum.c const struct ipv6hdr *ip6h; ip6h 244 net/sched/act_csum.c ip6h = ipv6_hdr(skb); ip6h 247 net/sched/act_csum.c tcph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ip6h 316 net/sched/act_csum.c const struct ipv6hdr *ip6h; ip6h 333 net/sched/act_csum.c ip6h = ipv6_hdr(skb); ip6h 354 net/sched/act_csum.c udph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ul, ip6h 488 net/sched/act_csum.c struct ipv6hdr *ip6h; ip6h 497 net/sched/act_csum.c hl = sizeof(*ip6h); ip6h 502 net/sched/act_csum.c ip6h = ipv6_hdr(skb); ip6h 504 net/sched/act_csum.c pl = ntohs(ip6h->payload_len); ip6h 505 net/sched/act_csum.c nexthdr = ip6h->nexthdr; ip6h 530 net/sched/act_csum.c hl, pl + sizeof(*ip6h))) ip6h 536 net/sched/act_csum.c hl, pl + sizeof(*ip6h))) ip6h 542 net/sched/act_csum.c pl + sizeof(*ip6h), 0)) ip6h 548 net/sched/act_csum.c pl + sizeof(*ip6h), 1)) ip6h 553 net/sched/act_csum.c !tcf_csum_sctp(skb, hl, pl + sizeof(*ip6h))) ip6h 295 net/xfrm/xfrm_input.c struct ipv6hdr *ip6h; ip6h 309 net/xfrm/xfrm_input.c ip6h = ipv6_hdr(skb); ip6h 310 net/xfrm/xfrm_input.c ip6h->payload_len = htons(skb->len - size); ip6h 311 net/xfrm/xfrm_input.c ip6h->daddr = x->sel.daddr.in6; ip6h 312 net/xfrm/xfrm_input.c ip6h->saddr = x->sel.saddr.in6; ip6h 117 samples/bpf/hbm_kern.h struct ipv6hdr *ip6h; ip6h 123 samples/bpf/hbm_kern.h ip6h = (struct ipv6hdr *)&iph; ip6h 125 samples/bpf/hbm_kern.h pkti->is_tcp = (ip6h->nexthdr == 6); ip6h 126 samples/bpf/hbm_kern.h pkti->ecn = (ip6h->flow_lbl[0] >> 4) & INET_ECN_MASK; ip6h 80 samples/bpf/parse_varlen.c struct ipv6hdr *ip6h; ip6h 85 samples/bpf/parse_varlen.c ip6h = data + nh_off; ip6h 86 samples/bpf/parse_varlen.c if (ip6h + 1 > data_end) ip6h 89 samples/bpf/parse_varlen.c nexthdr = ip6h->nexthdr; ip6h 98 samples/bpf/parse_varlen.c ip6h = data + nh_off + ihl_len; ip6h 99 samples/bpf/parse_varlen.c if (ip6h + 1 > data_end) ip6h 102 samples/bpf/parse_varlen.c nexthdr = ip6h->nexthdr; ip6h 91 samples/bpf/tc_l2_redirect_kern.c struct ipv6hdr *ip6h = data + sizeof(*eth); ip6h 93 samples/bpf/tc_l2_redirect_kern.c if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) ip6h 96 samples/bpf/tc_l2_redirect_kern.c if (ip6h->nexthdr != IPPROTO_IPIP && ip6h 97 samples/bpf/tc_l2_redirect_kern.c ip6h->nexthdr != IPPROTO_IPV6) ip6h 101 samples/bpf/tc_l2_redirect_kern.c _htonl(ip6h->daddr.s6_addr32[0]), ip6h 102 samples/bpf/tc_l2_redirect_kern.c _htonl(ip6h->daddr.s6_addr32[3])); ip6h 180 samples/bpf/tc_l2_redirect_kern.c struct ipv6hdr *ip6h = data + sizeof(*eth); ip6h 182 samples/bpf/tc_l2_redirect_kern.c if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) ip6h 185 samples/bpf/tc_l2_redirect_kern.c if (!is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) ip6h 189 samples/bpf/tc_l2_redirect_kern.c _htonl(ip6h->daddr.s6_addr32[0]), *ifindex); ip6h 225 samples/bpf/tc_l2_redirect_kern.c struct ipv6hdr *ip6h = data + sizeof(*eth); ip6h 227 samples/bpf/tc_l2_redirect_kern.c if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) ip6h 230 samples/bpf/tc_l2_redirect_kern.c if (is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) ip6h 46 samples/bpf/test_cgrp2_tc_kern.c struct ipv6hdr *ip6h = data + sizeof(*eth); ip6h 53 samples/bpf/test_cgrp2_tc_kern.c if (data + sizeof(*eth) + sizeof(*ip6h) > data_end) ip6h 57 samples/bpf/test_cgrp2_tc_kern.c ip6h->nexthdr != IPPROTO_ICMPV6) { ip6h 59 samples/bpf/test_cgrp2_tc_kern.c eth->h_proto, ip6h->nexthdr); ip6h 35 samples/bpf/xdp1_kern.c struct ipv6hdr *ip6h = data + nh_off; ip6h 37 samples/bpf/xdp1_kern.c if (ip6h + 1 > data_end) ip6h 39 samples/bpf/xdp1_kern.c return ip6h->nexthdr; ip6h 51 samples/bpf/xdp2_kern.c struct ipv6hdr *ip6h = data + nh_off; ip6h 53 samples/bpf/xdp2_kern.c if (ip6h + 1 > data_end) ip6h 55 samples/bpf/xdp2_kern.c return ip6h->nexthdr; ip6h 49 samples/bpf/xdp_fwd_kern.c struct ipv6hdr *ip6h; ip6h 83 samples/bpf/xdp_fwd_kern.c ip6h = data + nh_off; ip6h 84 samples/bpf/xdp_fwd_kern.c if (ip6h + 1 > data_end) ip6h 87 samples/bpf/xdp_fwd_kern.c if (ip6h->hop_limit <= 1) ip6h 91 samples/bpf/xdp_fwd_kern.c fib_params.flowinfo = *(__be32 *)ip6h & IPV6_FLOWINFO_MASK; ip6h 92 samples/bpf/xdp_fwd_kern.c fib_params.l4_protocol = ip6h->nexthdr; ip6h 95 samples/bpf/xdp_fwd_kern.c fib_params.tot_len = ntohs(ip6h->payload_len); ip6h 96 samples/bpf/xdp_fwd_kern.c *src = ip6h->saddr; ip6h 97 samples/bpf/xdp_fwd_kern.c *dst = ip6h->daddr; ip6h 136 samples/bpf/xdp_fwd_kern.c ip6h->hop_limit--; ip6h 193 samples/bpf/xdp_redirect_cpu_kern.c struct ipv6hdr *ip6h = data + nh_off; ip6h 195 samples/bpf/xdp_redirect_cpu_kern.c if (ip6h + 1 > data_end) ip6h 197 samples/bpf/xdp_redirect_cpu_kern.c return ip6h->nexthdr; ip6h 490 samples/bpf/xdp_redirect_cpu_kern.c struct ipv6hdr *ip6h = data + nh_off; ip6h 493 samples/bpf/xdp_redirect_cpu_kern.c if (ip6h + 1 > data_end) ip6h 496 samples/bpf/xdp_redirect_cpu_kern.c cpu_hash = ip6h->saddr.s6_addr32[0] + ip6h->daddr.s6_addr32[0]; ip6h 497 samples/bpf/xdp_redirect_cpu_kern.c cpu_hash += ip6h->saddr.s6_addr32[1] + ip6h->daddr.s6_addr32[1]; ip6h 498 samples/bpf/xdp_redirect_cpu_kern.c cpu_hash += ip6h->saddr.s6_addr32[2] + ip6h->daddr.s6_addr32[2]; ip6h 499 samples/bpf/xdp_redirect_cpu_kern.c cpu_hash += ip6h->saddr.s6_addr32[3] + ip6h->daddr.s6_addr32[3]; ip6h 500 samples/bpf/xdp_redirect_cpu_kern.c cpu_hash = SuperFastHash((char *)&cpu_hash, 4, INITVAL + ip6h->nexthdr); ip6h 159 samples/bpf/xdp_tx_iptunnel_kern.c struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); ip6h 164 samples/bpf/xdp_tx_iptunnel_kern.c if (ip6h + 1 > data_end) ip6h 167 samples/bpf/xdp_tx_iptunnel_kern.c dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); ip6h 171 samples/bpf/xdp_tx_iptunnel_kern.c vip.protocol = ip6h->nexthdr; ip6h 173 samples/bpf/xdp_tx_iptunnel_kern.c memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); ip6h 175 samples/bpf/xdp_tx_iptunnel_kern.c payload_len = ip6h->payload_len; ip6h 191 samples/bpf/xdp_tx_iptunnel_kern.c ip6h = data + sizeof(*new_eth); ip6h 192 samples/bpf/xdp_tx_iptunnel_kern.c old_eth = data + sizeof(*ip6h); ip6h 196 samples/bpf/xdp_tx_iptunnel_kern.c ip6h + 1 > data_end) ip6h 201 samples/bpf/xdp_tx_iptunnel_kern.c ip6h->version = 6; ip6h 202 samples/bpf/xdp_tx_iptunnel_kern.c ip6h->priority = 0; ip6h 203 samples/bpf/xdp_tx_iptunnel_kern.c memset(ip6h->flow_lbl, 0, sizeof(ip6h->flow_lbl)); ip6h 204 samples/bpf/xdp_tx_iptunnel_kern.c ip6h->payload_len = htons(ntohs(payload_len) + sizeof(*ip6h)); ip6h 205 samples/bpf/xdp_tx_iptunnel_kern.c ip6h->nexthdr = IPPROTO_IPV6; ip6h 206 samples/bpf/xdp_tx_iptunnel_kern.c ip6h->hop_limit = 8; ip6h 207 samples/bpf/xdp_tx_iptunnel_kern.c memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); ip6h 208 samples/bpf/xdp_tx_iptunnel_kern.c memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); ip6h 313 tools/testing/selftests/bpf/progs/bpf_flow.c struct ipv6hdr *ip6h, _ip6h; ip6h 315 tools/testing/selftests/bpf/progs/bpf_flow.c ip6h = bpf_flow_dissect_get_header(skb, sizeof(*ip6h), &_ip6h); ip6h 316 tools/testing/selftests/bpf/progs/bpf_flow.c if (!ip6h) ip6h 320 tools/testing/selftests/bpf/progs/bpf_flow.c memcpy(&keys->ipv6_src, &ip6h->saddr, 2*sizeof(ip6h->saddr)); ip6h 323 tools/testing/selftests/bpf/progs/bpf_flow.c keys->ip_proto = ip6h->nexthdr; ip6h 324 tools/testing/selftests/bpf/progs/bpf_flow.c keys->flow_label = ip6_flowlabel(ip6h); ip6h 329 tools/testing/selftests/bpf/progs/bpf_flow.c return parse_ipv6_proto(skb, ip6h->nexthdr); ip6h 335 tools/testing/selftests/bpf/progs/bpf_flow.c struct ipv6_opt_hdr *ip6h, _ip6h; ip6h 337 tools/testing/selftests/bpf/progs/bpf_flow.c ip6h = bpf_flow_dissect_get_header(skb, sizeof(*ip6h), &_ip6h); ip6h 338 tools/testing/selftests/bpf/progs/bpf_flow.c if (!ip6h) ip6h 344 tools/testing/selftests/bpf/progs/bpf_flow.c keys->thoff += (1 + ip6h->hdrlen) << 3; ip6h 345 tools/testing/selftests/bpf/progs/bpf_flow.c keys->ip_proto = ip6h->nexthdr; ip6h 347 tools/testing/selftests/bpf/progs/bpf_flow.c return parse_ipv6_proto(skb, ip6h->nexthdr); ip6h 240 tools/testing/selftests/bpf/progs/test_l4lb.c struct ipv6hdr *ip6h; ip6h 248 tools/testing/selftests/bpf/progs/test_l4lb.c ip6h = data + off; ip6h 249 tools/testing/selftests/bpf/progs/test_l4lb.c if (ip6h + 1 > data_end) ip6h 251 tools/testing/selftests/bpf/progs/test_l4lb.c pckt->proto = ip6h->nexthdr; ip6h 253 tools/testing/selftests/bpf/progs/test_l4lb.c memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); ip6h 254 tools/testing/selftests/bpf/progs/test_l4lb.c memcpy(pckt->dstv6, ip6h->saddr.s6_addr32, 16); ip6h 337 tools/testing/selftests/bpf/progs/test_l4lb.c struct ipv6hdr *ip6h; ip6h 350 tools/testing/selftests/bpf/progs/test_l4lb.c ip6h = data + off; ip6h 351 tools/testing/selftests/bpf/progs/test_l4lb.c if (ip6h + 1 > data_end) ip6h 355 tools/testing/selftests/bpf/progs/test_l4lb.c protocol = ip6h->nexthdr; ip6h 357 tools/testing/selftests/bpf/progs/test_l4lb.c pkt_bytes = bpf_ntohs(ip6h->payload_len); ip6h 367 tools/testing/selftests/bpf/progs/test_l4lb.c memcpy(pckt.srcv6, ip6h->saddr.s6_addr32, 16); ip6h 368 tools/testing/selftests/bpf/progs/test_l4lb.c memcpy(pckt.dstv6, ip6h->daddr.s6_addr32, 16); ip6h 240 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c struct ipv6hdr *ip6h; ip6h 248 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c ip6h = data + off; ip6h 249 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (ip6h + 1 > data_end) ip6h 251 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c pckt->proto = ip6h->nexthdr; ip6h 253 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c memcpy(pckt->srcv6, ip6h->daddr.s6_addr32, 16); ip6h 254 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c memcpy(pckt->dstv6, ip6h->saddr.s6_addr32, 16); ip6h 337 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c struct ipv6hdr *ip6h; ip6h 350 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c ip6h = data + off; ip6h 351 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (ip6h + 1 > data_end) ip6h 355 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c protocol = ip6h->nexthdr; ip6h 357 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c pkt_bytes = bpf_ntohs(ip6h->payload_len); ip6h 367 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c memcpy(pckt.srcv6, ip6h->saddr.s6_addr32, 16); ip6h 368 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c memcpy(pckt.dstv6, ip6h->daddr.s6_addr32, 16); ip6h 42 tools/testing/selftests/bpf/progs/test_pkt_access.c struct ipv6hdr *ip6h = (struct ipv6hdr *)(eth + 1); ip6h 44 tools/testing/selftests/bpf/progs/test_pkt_access.c if (ip6h + 1 > data_end) ip6h 46 tools/testing/selftests/bpf/progs/test_pkt_access.c ihl_len = sizeof(*ip6h); ip6h 47 tools/testing/selftests/bpf/progs/test_pkt_access.c proto = ip6h->nexthdr; ip6h 48 tools/testing/selftests/bpf/progs/test_pkt_access.c tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); ip6h 40 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct ipv6hdr *ip6h = (struct ipv6hdr *)(data + nh_off); ip6h 42 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c if (ip6h + 1 > data_end) ip6h 44 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c ihl_len = sizeof(*ip6h); ip6h 45 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c proto = ip6h->nexthdr; ip6h 47 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c result = (struct bpf_sock_tuple *)&ip6h->saddr; ip6h 160 tools/testing/selftests/bpf/progs/test_xdp.c struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); ip6h 165 tools/testing/selftests/bpf/progs/test_xdp.c if (ip6h + 1 > data_end) ip6h 168 tools/testing/selftests/bpf/progs/test_xdp.c dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); ip6h 172 tools/testing/selftests/bpf/progs/test_xdp.c vip.protocol = ip6h->nexthdr; ip6h 174 tools/testing/selftests/bpf/progs/test_xdp.c memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); ip6h 176 tools/testing/selftests/bpf/progs/test_xdp.c payload_len = ip6h->payload_len; ip6h 190 tools/testing/selftests/bpf/progs/test_xdp.c ip6h = data + sizeof(*new_eth); ip6h 191 tools/testing/selftests/bpf/progs/test_xdp.c old_eth = data + sizeof(*ip6h); ip6h 194 tools/testing/selftests/bpf/progs/test_xdp.c ip6h + 1 > data_end) ip6h 199 tools/testing/selftests/bpf/progs/test_xdp.c ip6h->version = 6; ip6h 200 tools/testing/selftests/bpf/progs/test_xdp.c ip6h->priority = 0; ip6h 201 tools/testing/selftests/bpf/progs/test_xdp.c memset(ip6h->flow_lbl, 0, sizeof(ip6h->flow_lbl)); ip6h 202 tools/testing/selftests/bpf/progs/test_xdp.c ip6h->payload_len = bpf_htons(bpf_ntohs(payload_len) + sizeof(*ip6h)); ip6h 203 tools/testing/selftests/bpf/progs/test_xdp.c ip6h->nexthdr = IPPROTO_IPV6; ip6h 204 tools/testing/selftests/bpf/progs/test_xdp.c ip6h->hop_limit = 8; ip6h 205 tools/testing/selftests/bpf/progs/test_xdp.c memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); ip6h 206 tools/testing/selftests/bpf/progs/test_xdp.c memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); ip6h 156 tools/testing/selftests/bpf/progs/test_xdp_loop.c struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); ip6h 161 tools/testing/selftests/bpf/progs/test_xdp_loop.c if (ip6h + 1 > data_end) ip6h 164 tools/testing/selftests/bpf/progs/test_xdp_loop.c dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); ip6h 168 tools/testing/selftests/bpf/progs/test_xdp_loop.c vip.protocol = ip6h->nexthdr; ip6h 170 tools/testing/selftests/bpf/progs/test_xdp_loop.c memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); ip6h 172 tools/testing/selftests/bpf/progs/test_xdp_loop.c payload_len = ip6h->payload_len; ip6h 186 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h = data + sizeof(*new_eth); ip6h 187 tools/testing/selftests/bpf/progs/test_xdp_loop.c old_eth = data + sizeof(*ip6h); ip6h 190 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h + 1 > data_end) ip6h 195 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h->version = 6; ip6h 196 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h->priority = 0; ip6h 197 tools/testing/selftests/bpf/progs/test_xdp_loop.c memset(ip6h->flow_lbl, 0, sizeof(ip6h->flow_lbl)); ip6h 198 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h->payload_len = bpf_htons(bpf_ntohs(payload_len) + sizeof(*ip6h)); ip6h 199 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h->nexthdr = IPPROTO_IPV6; ip6h 200 tools/testing/selftests/bpf/progs/test_xdp_loop.c ip6h->hop_limit = 8; ip6h 201 tools/testing/selftests/bpf/progs/test_xdp_loop.c memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); ip6h 202 tools/testing/selftests/bpf/progs/test_xdp_loop.c memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); ip6h 284 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct ipv6hdr *ip6h; ip6h 294 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + sizeof(struct eth_hdr); ip6h 297 tools/testing/selftests/bpf/progs/test_xdp_noinline.c old_eth + 1 > data_end || ip6h + 1 > data_end) ip6h 302 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->version = 6; ip6h 303 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->priority = 0; ip6h 304 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memset(ip6h->flow_lbl, 0, sizeof(ip6h->flow_lbl)); ip6h 306 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->nexthdr = IPPROTO_IPV6; ip6h 308 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->payload_len = ip6h 310 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->hop_limit = 4; ip6h 312 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->saddr.in6_u.u6_addr32[0] = 1; ip6h 313 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->saddr.in6_u.u6_addr32[1] = 2; ip6h 314 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->saddr.in6_u.u6_addr32[2] = 3; ip6h 315 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->saddr.in6_u.u6_addr32[3] = ip_suffix; ip6h 316 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(ip6h->daddr.in6_u.u6_addr32, dst->dstv6, 16); ip6h 463 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct ipv6hdr *ip6h; ip6h 471 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + off; ip6h 476 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h->hop_limit = 4; ip6h 477 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(tmp_addr, ip6h->saddr.in6_u.u6_addr32, 16); ip6h 478 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(ip6h->saddr.in6_u.u6_addr32, ip6h->daddr.in6_u.u6_addr32, 16); ip6h 479 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(ip6h->daddr.in6_u.u6_addr32, tmp_addr, 16); ip6h 488 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct ipv6hdr *ip6h; ip6h 498 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + off; ip6h 499 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (ip6h + 1 > data_end) ip6h 501 tools/testing/selftests/bpf/progs/test_xdp_noinline.c pckt->flow.proto = ip6h->nexthdr; ip6h 503 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(pckt->flow.srcv6, ip6h->daddr.in6_u.u6_addr32, 16); ip6h 504 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(pckt->flow.dstv6, ip6h->saddr.in6_u.u6_addr32, 16); ip6h 633 tools/testing/selftests/bpf/progs/test_xdp_noinline.c struct ipv6hdr *ip6h; ip6h 637 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + off; ip6h 638 tools/testing/selftests/bpf/progs/test_xdp_noinline.c if (ip6h + 1 > data_end) ip6h 641 tools/testing/selftests/bpf/progs/test_xdp_noinline.c *protocol = ip6h->nexthdr; ip6h 643 tools/testing/selftests/bpf/progs/test_xdp_noinline.c *pkt_bytes = bpf_ntohs(ip6h->payload_len); ip6h 652 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(pckt->flow.srcv6, ip6h->saddr.in6_u.u6_addr32, 16); ip6h 653 tools/testing/selftests/bpf/progs/test_xdp_noinline.c memcpy(pckt->flow.dstv6, ip6h->daddr.in6_u.u6_addr32, 16); ip6h 183 tools/testing/selftests/bpf/test_flow_dissector.c static void ipv6_set_dsfield(struct ipv6hdr *ip6h, uint8_t dsfield) ip6h 185 tools/testing/selftests/bpf/test_flow_dissector.c uint16_t val, *ptr = (uint16_t *)ip6h; ip6h 198 tools/testing/selftests/bpf/test_flow_dissector.c struct ipv6hdr *ip6h = header; ip6h 200 tools/testing/selftests/bpf/test_flow_dissector.c ip6h->version = 6; ip6h 201 tools/testing/selftests/bpf/test_flow_dissector.c ip6h->payload_len = htons(payload_len); ip6h 202 tools/testing/selftests/bpf/test_flow_dissector.c ip6h->nexthdr = proto; ip6h 203 tools/testing/selftests/bpf/test_flow_dissector.c ip6h->hop_limit = 8; ip6h 204 tools/testing/selftests/bpf/test_flow_dissector.c ipv6_set_dsfield(ip6h, dsfield); ip6h 206 tools/testing/selftests/bpf/test_flow_dissector.c memcpy(&ip6h->saddr, &src->sin6_addr, sizeof(ip6h->saddr)); ip6h 207 tools/testing/selftests/bpf/test_flow_dissector.c memcpy(&ip6h->daddr, &dst->sin6_addr, sizeof(ip6h->daddr)); ip6h 223 tools/testing/selftests/bpf/test_flow_dissector.c static uint16_t build_udp_v6_csum(const struct ipv6hdr *ip6h, ip6h 228 tools/testing/selftests/bpf/test_flow_dissector.c int num_u16 = sizeof(ip6h->saddr); /* halfwords: twice byte len */ ip6h 230 tools/testing/selftests/bpf/test_flow_dissector.c pseudo_sum = add_csum_hword((void *) &ip6h->saddr, num_u16); ip6h 231 tools/testing/selftests/bpf/test_flow_dissector.c pseudo_sum += htons(ip6h->nexthdr); ip6h 232 tools/testing/selftests/bpf/test_flow_dissector.c pseudo_sum += ip6h->payload_len; ip6h 277 tools/testing/selftests/net/msg_zerocopy.c static int setup_ip6h(struct ipv6hdr *ip6h, uint16_t payload_len) ip6h 282 tools/testing/selftests/net/msg_zerocopy.c memset(ip6h, 0, sizeof(*ip6h)); ip6h 284 tools/testing/selftests/net/msg_zerocopy.c ip6h->version = 6; ip6h 285 tools/testing/selftests/net/msg_zerocopy.c ip6h->payload_len = htons(payload_len); ip6h 286 tools/testing/selftests/net/msg_zerocopy.c ip6h->nexthdr = IPPROTO_EGP; ip6h 287 tools/testing/selftests/net/msg_zerocopy.c ip6h->hop_limit = 2; ip6h 288 tools/testing/selftests/net/msg_zerocopy.c ip6h->saddr = saddr->sin6_addr; ip6h 289 tools/testing/selftests/net/msg_zerocopy.c ip6h->daddr = daddr->sin6_addr; ip6h 291 tools/testing/selftests/net/msg_zerocopy.c return sizeof(*ip6h); ip6h 489 tools/testing/selftests/net/msg_zerocopy.c struct ipv6hdr ip6h; ip6h 528 tools/testing/selftests/net/msg_zerocopy.c iov[1].iov_len = setup_ip6h(&nh.ip6h, cfg_payload_len); ip6h 355 tools/testing/selftests/networking/timestamping/txtimestamp.c struct ipv6hdr *ip6h = p; ip6h 357 tools/testing/selftests/networking/timestamping/txtimestamp.c memset(ip6h, 0, sizeof(*ip6h)); ip6h 359 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->version = 6; ip6h 360 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->payload_len = htons(sizeof(struct udphdr) + cfg_payload_len); ip6h 361 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->nexthdr = IPPROTO_UDP; ip6h 362 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->hop_limit = 64; ip6h 364 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->saddr = daddr6.sin6_addr; ip6h 365 tools/testing/selftests/networking/timestamping/txtimestamp.c ip6h->daddr = daddr6.sin6_addr; ip6h 369 tools/testing/selftests/networking/timestamping/txtimestamp.c return sizeof(*ip6h);