/openbmc/linux/drivers/net/wireguard/selftest/ |
H A D | ratelimiter.c | 67 hdr6->saddr.in6_u.u6_addr32[2] = htonl(i); in timings_test() 68 hdr6->saddr.in6_u.u6_addr32[3] = htonl(i); in timings_test() 77 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test() 78 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) + i + 1); in timings_test() 86 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test() 87 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) - i - 1); in timings_test() 164 hdr6->saddr.in6_u.u6_addr32[0] = htonl(1212); in wg_ratelimiter_selftest() 165 hdr6->saddr.in6_u.u6_addr32[1] = htonl(289188); in wg_ratelimiter_selftest()
|
H A D | allowedips.c | 146 return (ip->in6_u.u6_addr32[0] & node->mask.ip6[0]) == node->ip.ip6[0] && in horrible_match_v6() 147 (ip->in6_u.u6_addr32[1] & node->mask.ip6[1]) == node->ip.ip6[1] && in horrible_match_v6() 148 (ip->in6_u.u6_addr32[2] & node->mask.ip6[2]) == node->ip.ip6[2] && in horrible_match_v6() 149 (ip->in6_u.u6_addr32[3] & node->mask.ip6[3]) == node->ip.ip6[3]; in horrible_match_v6()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | nat6to4.c | 237 ip6.saddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8); in sched_cls_egress4_snat4_prog() 238 ip6.saddr.in6_u.u6_addr32[1] = 0; in sched_cls_egress4_snat4_prog() 239 ip6.saddr.in6_u.u6_addr32[2] = 0; in sched_cls_egress4_snat4_prog() 240 ip6.saddr.in6_u.u6_addr32[3] = bpf_htonl(1); in sched_cls_egress4_snat4_prog() 241 ip6.daddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8); in sched_cls_egress4_snat4_prog() 242 ip6.daddr.in6_u.u6_addr32[1] = 0; in sched_cls_egress4_snat4_prog() 243 ip6.daddr.in6_u.u6_addr32[2] = 0; in sched_cls_egress4_snat4_prog() 244 ip6.daddr.in6_u.u6_addr32[3] = bpf_htonl(2); in sched_cls_egress4_snat4_prog()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | cgroup_skb_sk_lookup_kern.c | 23 dst[0] = src->in6_u.u6_addr32[0]; in set_ip() 24 dst[1] = src->in6_u.u6_addr32[1]; in set_ip() 25 dst[2] = src->in6_u.u6_addr32[2]; in set_ip() 26 dst[3] = src->in6_u.u6_addr32[3]; in set_ip()
|
H A D | test_xdp_noinline.c | 312 ip6h->saddr.in6_u.u6_addr32[0] = 1; in encap_v6() 313 ip6h->saddr.in6_u.u6_addr32[1] = 2; in encap_v6() 314 ip6h->saddr.in6_u.u6_addr32[2] = 3; in encap_v6() 315 ip6h->saddr.in6_u.u6_addr32[3] = ip_suffix; in encap_v6() 316 memcpy(ip6h->daddr.in6_u.u6_addr32, dst->dstv6, 16); in encap_v6() 437 memcpy(tmp_addr, ip6h->saddr.in6_u.u6_addr32, 16); in send_icmp6_reply() 438 memcpy(ip6h->saddr.in6_u.u6_addr32, ip6h->daddr.in6_u.u6_addr32, 16); in send_icmp6_reply() 439 memcpy(ip6h->daddr.in6_u.u6_addr32, tmp_addr, 16); in send_icmp6_reply() 463 memcpy(pckt->flow.srcv6, ip6h->daddr.in6_u.u6_addr32, 16); in parse_icmpv6() 464 memcpy(pckt->flow.dstv6, ip6h->saddr.in6_u.u6_addr32, 16); in parse_icmpv6() [all …]
|
H A D | bpf_tracing_net.h | 93 #define s6_addr32 in6_u.u6_addr32
|
H A D | xdp_synproxy_kern.c | 156 sum += (__u32)saddr->in6_u.u6_addr32[i]; in csum_ipv6_magic() 160 sum += (__u32)daddr->in6_u.u6_addr32[i]; in csum_ipv6_magic()
|
/openbmc/linux/include/uapi/linux/ |
H A D | in6.h | 38 __be32 u6_addr32[4]; member 44 #define s6_addr32 in6_u.u6_addr32
|
/openbmc/linux/drivers/infiniband/hw/qedr/ |
H A D | qedr_iw_cm.c | 75 laddr6->sin6_addr.in6_u.u6_addr32[i] = in qedr_fill_sockaddr6() 77 raddr6->sin6_addr.in6_u.u6_addr32[i] = in qedr_fill_sockaddr6() 422 laddr6.in6_u.u6_addr32[i] = htonl(addr[i]); in qedr_iw_get_vlan_ipv6() 607 ntohl(raddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_connect() 609 ntohl(laddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_connect() 700 ntohl(laddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_create_listen()
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 124 irdma_copy_ip_htonl(laddr6->sin6_addr.in6_u.u6_addr32, in irdma_fill_sockaddr6() 126 irdma_copy_ip_htonl(raddr6->sin6_addr.in6_u.u6_addr32, in irdma_fill_sockaddr6() 531 irdma_copy_ip_htonl(ip6h->saddr.in6_u.u6_addr32, in irdma_form_uda_cm_frame() 533 irdma_copy_ip_htonl(ip6h->daddr.in6_u.u6_addr32, in irdma_form_uda_cm_frame() 1569 irdma_copy_ip_htonl(laddr6.in6_u.u6_addr32, loc_addr); in irdma_iw_get_vlan_prio() 1609 irdma_copy_ip_htonl(laddr6.in6_u.u6_addr32, addr); in irdma_get_vlan_mac_ipv6() 1699 ifp->addr.in6_u.u6_addr32); in irdma_add_mqh_6() 2051 irdma_copy_ip_htonl(dst_addr.sin6_addr.in6_u.u6_addr32, dest); in irdma_addr_resolve_neigh_ipv6() 2053 irdma_copy_ip_htonl(src_addr.sin6_addr.in6_u.u6_addr32, src); in irdma_addr_resolve_neigh_ipv6() 2065 neigh = dst_neigh_lookup(dst, dst_addr.sin6_addr.in6_u.u6_addr32); in irdma_addr_resolve_neigh_ipv6() [all …]
|
H A D | utils.c | 217 irdma_copy_ip_ntohl(local_ipaddr6, ifa->addr.in6_u.u6_addr32); in irdma_inet6addr_event() 365 ifp->addr.in6_u.u6_addr32); in irdma_add_ipv6_addr() 1432 irdma_copy_ip_ntohl(loc_addr, ip6h->daddr.in6_u.u6_addr32); in irdma_ieq_get_qp() 1433 irdma_copy_ip_ntohl(rem_addr, ip6h->saddr.in6_u.u6_addr32); in irdma_ieq_get_qp() 1498 ip6h->daddr.in6_u.u6_addr32); in irdma_puda_ieq_get_ah_info() 1500 ip6h->saddr.in6_u.u6_addr32); in irdma_puda_ieq_get_ah_info()
|
H A D | verbs.c | 1301 av->dgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32; in irdma_modify_qp_roce() 1303 av->sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32; in irdma_modify_qp_roce() 4061 sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_attach_mcast() 4195 sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_detach_mcast() 4334 dgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_setup_ah() 4336 sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_setup_ah()
|
/openbmc/linux/drivers/net/dsa/ |
H A D | bcm_sf2_cfp.c | 745 bcm_sf2_cfp_slice_ipv6(priv, ipv6.key->src.in6_u.u6_addr32, in bcm_sf2_cfp_ipv6_rule_set() 748 bcm_sf2_cfp_slice_ipv6(priv, ipv6.mask->src.in6_u.u6_addr32, in bcm_sf2_cfp_ipv6_rule_set() 801 bcm_sf2_cfp_slice_ipv6(priv, ipv6.key->dst.in6_u.u6_addr32, in bcm_sf2_cfp_ipv6_rule_set() 804 bcm_sf2_cfp_slice_ipv6(priv, ipv6.mask->dst.in6_u.u6_addr32, in bcm_sf2_cfp_ipv6_rule_set()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 101 .in6_u.u6_addr32 = {__constant_htonl(0xffffffff), in print_lyr_2_4_hdrs()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | offload.c | 655 merge->ipv6.ipv6_src.in6_u.u6_addr32[i] |= in nfp_flower_update_merge_with_actions() 661 merge->ipv6.ipv6_dst.in6_u.u6_addr32[i] |= in nfp_flower_update_merge_with_actions()
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 192 memcpy(&ipv6.saddr.in6_u.u6_addr32, data->src_ip6, in i40e_create_dummy_packet() 194 memcpy(&ipv6.daddr.in6_u.u6_addr32, data->dst_ip6, in i40e_create_dummy_packet()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_iwarp.c | 1743 ntohl(ip6h->daddr.in6_u.u6_addr32[i]); in qed_iwarp_parse_rx_pkt() 1745 ntohl(ip6h->saddr.in6_u.u6_addr32[i]); in qed_iwarp_parse_rx_pkt()
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | cnic.c | 2054 src_ip.in6_u.u6_addr32[i] = cpu_to_be32(*addrp); in cnic_init_storm_conn_bufs() 2058 dst_ip.in6_u.u6_addr32[i] = cpu_to_be32(*addrp); in cnic_init_storm_conn_bufs()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 6953 #define flow_ip6_src fkeys->addrs.v6addrs.src.in6_u.u6_addr32 in hclge_fd_get_flow_tuples() 6954 #define flow_ip6_dst fkeys->addrs.v6addrs.dst.in6_u.u6_addr32 in hclge_fd_get_flow_tuples()
|