Home
last modified time | relevance | path

Searched refs:s6_addr32 (Results 1 – 25 of 109) sorted by relevance

12345

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_tcp6.c125 src->s6_addr32[0], src->s6_addr32[1], in dump_tcp6_sock()
126 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tcp6_sock()
127 dest->s6_addr32[0], dest->s6_addr32[1], in dump_tcp6_sock()
128 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_tcp6_sock()
168 src->s6_addr32[0], src->s6_addr32[1], in dump_tw_sock()
169 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tw_sock()
170 dest->s6_addr32[0], dest->s6_addr32[1], in dump_tw_sock()
198 src->s6_addr32[0], src->s6_addr32[1], in dump_req_sock()
199 src->s6_addr32[2], src->s6_addr32[3], in dump_req_sock()
201 dest->s6_addr32[0], dest->s6_addr32[1], in dump_req_sock()
[all …]
H A Dbpf_iter_udp6.c63 src->s6_addr32[0], src->s6_addr32[1], in dump_udp6()
64 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_udp6()
65 dest->s6_addr32[0], dest->s6_addr32[1], in dump_udp6()
66 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_udp6()
H A Dtest_tc_neigh.c30 # define v6_equal(a, b) (a.s6_addr32[0] == b.s6_addr32[0] && \
31 a.s6_addr32[1] == b.s6_addr32[1] && \
32 a.s6_addr32[2] == b.s6_addr32[2] && \
33 a.s6_addr32[3] == b.s6_addr32[3])
H A Dxdp_features.c19 #define ipv6_addr_equal(a, b) ((a).s6_addr32[0] == (b).s6_addr32[0] && \
20 (a).s6_addr32[1] == (b).s6_addr32[1] && \
21 (a).s6_addr32[2] == (b).s6_addr32[2] && \
22 (a).s6_addr32[3] == (b).s6_addr32[3])
79 __be32 saddr = dut ? tester_addr.s6_addr32[3] in xdp_process_echo_packet()
80 : dut_addr.s6_addr32[3]; in xdp_process_echo_packet()
81 __be32 daddr = dut ? dut_addr.s6_addr32[3] in xdp_process_echo_packet()
82 : tester_addr.s6_addr32[3]; in xdp_process_echo_packet()
H A Dtest_tc_dtime.c37 #define v6_equal(a, b) (a.s6_addr32[0] == b.s6_addr32[0] && \
38 a.s6_addr32[1] == b.s6_addr32[1] && \
39 a.s6_addr32[2] == b.s6_addr32[2] && \
40 a.s6_addr32[3] == b.s6_addr32[3])
H A Dconnect6_prog.c82 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()
83 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()
84 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()
85 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
/openbmc/linux/net/ipv6/
H A Dip6_checksum.c18 sum += (__force u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
22 sum += (__force u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
26 sum += (__force u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
30 sum += (__force u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
34 sum += (__force u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
38 sum += (__force u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
42 sum += (__force u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
[all …]
H A Daddrconf_core.c42 st = addr->s6_addr32[0]; in __ipv6_addr_type()
69 if ((addr->s6_addr32[0] | addr->s6_addr32[1]) == 0) { in __ipv6_addr_type()
70 if (addr->s6_addr32[2] == 0) { in __ipv6_addr_type()
71 if (addr->s6_addr32[3] == 0) in __ipv6_addr_type()
74 if (addr->s6_addr32[3] == htonl(0x00000001)) in __ipv6_addr_type()
82 if (addr->s6_addr32[2] == htonl(0x0000ffff)) in __ipv6_addr_type()
H A Dtcp_ipv6.c1971 src->s6_addr32[0], src->s6_addr32[1], in get_openreq6()
1972 src->s6_addr32[2], src->s6_addr32[3], in get_openreq6()
1974 dest->s6_addr32[0], dest->s6_addr32[1], in get_openreq6()
1975 dest->s6_addr32[2], dest->s6_addr32[3], in get_openreq6()
2037 src->s6_addr32[0], src->s6_addr32[1], in get_tcp6_sock()
2038 src->s6_addr32[2], src->s6_addr32[3], srcp, in get_tcp6_sock()
2039 dest->s6_addr32[0], dest->s6_addr32[1], in get_tcp6_sock()
2040 dest->s6_addr32[2], dest->s6_addr32[3], destp, in get_tcp6_sock()
2077 src->s6_addr32[0], src->s6_addr32[1], in get_timewait6_sock()
2078 src->s6_addr32[2], src->s6_addr32[3], srcp, in get_timewait6_sock()
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnf_queue.h64 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6()
65 (__force u32)ip6h->daddr.s6_addr32[3]) { in hash_v6()
66 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
67 b = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6()
69 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
70 a = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6()
73 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6()
74 (__force u32)ip6h->daddr.s6_addr32[1]) in hash_v6()
75 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6()
77 c = (__force u32) ip6h->daddr.s6_addr32[1]; in hash_v6()
/openbmc/linux/arch/s390/include/asm/
H A Dchecksum.h119 sum += (__force __u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
120 sum += (__force __u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
121 sum += (__force __u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
122 sum += (__force __u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
123 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
124 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
125 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
126 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/openbmc/linux/include/net/
H A Dipv6.h600 return !!(((a1->s6_addr32[0] ^ a2->s6_addr32[0]) & m->s6_addr32[0]) | in ipv6_masked_addr_cmp()
601 ((a1->s6_addr32[1] ^ a2->s6_addr32[1]) & m->s6_addr32[1]) | in ipv6_masked_addr_cmp()
602 ((a1->s6_addr32[2] ^ a2->s6_addr32[2]) & m->s6_addr32[2]) | in ipv6_masked_addr_cmp()
603 ((a1->s6_addr32[3] ^ a2->s6_addr32[3]) & m->s6_addr32[3])); in ipv6_masked_addr_cmp()
674 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
675 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
676 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
734 return (a->s6_addr32[0] | a->s6_addr32[1] | in ipv6_addr_any()
735 a->s6_addr32[2] | a->s6_addr32[3]) == 0; in ipv6_addr_any()
748 a->s6_addr32[2] ^ a->s6_addr32[3]); in ipv6_addr_hash()
[all …]
H A Daddrconf.h455 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
464 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
465 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_nodes()
466 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
476 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
477 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_routers()
478 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
496 addr->s6_addr32[1] | in ipv6_addr_is_solict_mult()
497 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult()
511 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_all_snoopers()
[all …]
H A Dif_inet6.h235 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
268 if ((addr->s6_addr32[0] | addr->s6_addr32[1] | in ipv6_ipgre_mc_map()
269 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) in ipv6_ipgre_mc_map()
271 memcpy(buf, &addr->s6_addr32[3], 4); in ipv6_ipgre_mc_map()
/openbmc/linux/net/smc/
H A Dsmc_ib.h67 !(addr6->s6_addr32[0] | addr6->s6_addr32[1] | addr6->s6_addr32[2])) in smc_ib_gid_to_ipv4()
68 return addr6->s6_addr32[3]; in smc_ib_gid_to_ipv4()
/openbmc/linux/net/netfilter/
H A Dxt_iprange.c58 if (a->s6_addr32[i] != b->s6_addr32[i]) in iprange_ipv6_lt()
59 return ntohl(a->s6_addr32[i]) < ntohl(b->s6_addr32[i]); in iprange_ipv6_lt()
/openbmc/linux/net/netlabel/
H A Dnetlabel_kapi.c152 map6->list.addr.s6_addr32[0] &= mask6->s6_addr32[0]; in netlbl_cfg_unlbl_map_add()
153 map6->list.addr.s6_addr32[1] &= mask6->s6_addr32[1]; in netlbl_cfg_unlbl_map_add()
154 map6->list.addr.s6_addr32[2] &= mask6->s6_addr32[2]; in netlbl_cfg_unlbl_map_add()
155 map6->list.addr.s6_addr32[3] &= mask6->s6_addr32[3]; in netlbl_cfg_unlbl_map_add()
491 addrinfo->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_cfg_calipso_map_add()
492 addrinfo->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_cfg_calipso_map_add()
493 addrinfo->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_cfg_calipso_map_add()
494 addrinfo->list.addr.s6_addr32[3] &= mask->s6_addr32[3]; in netlbl_cfg_calipso_map_add()
H A Dnetlabel_addrlist.c354 if (ntohl(mask->s6_addr32[3]) != 0xffffffff) { in netlbl_af6list_audit_addr()
358 while (ntohl(mask->s6_addr32[++iter]) == 0xffffffff) in netlbl_af6list_audit_addr()
360 mask_val = ntohl(mask->s6_addr32[iter]); in netlbl_af6list_audit_addr()
H A Dnetlabel_mgmt.c228 map->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_mgmt_add_common()
229 map->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_mgmt_add_common()
230 map->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_mgmt_add_common()
231 map->list.addr.s6_addr32[3] &= mask->s6_addr32[3]; in netlbl_mgmt_add_common()
/openbmc/linux/samples/bpf/
H A Dtc_l2_redirect_kern.c101 _htonl(ip6h->daddr.s6_addr32[0]), in _l2_to_iptun_ingress_forward()
102 _htonl(ip6h->daddr.s6_addr32[3])); in _l2_to_iptun_ingress_forward()
185 if (!is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) in _l2_to_ip6tun_ingress_redirect()
189 _htonl(ip6h->daddr.s6_addr32[0]), *ifindex); in _l2_to_ip6tun_ingress_redirect()
230 if (is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) in _drop_non_tun_vip()
/openbmc/linux/tools/testing/selftests/net/
H A Dioam6_parser.c517 return ((a1->s6_addr32[0] ^ a2->s6_addr32[0]) | in ipv6_addr_equal()
518 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
519 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
520 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
/openbmc/linux/net/rds/
H A Dthreads.c299 if (addr1->s6_addr32[i] != addr2->s6_addr32[i]) { in rds_addr_cmp()
300 a = ntohl(addr1->s6_addr32[i]); in rds_addr_cmp()
301 b = ntohl(addr2->s6_addr32[i]); in rds_addr_cmp()
/openbmc/linux/net/ipv6/netfilter/
H A Dip6t_NPT.c55 addr->s6_addr32[idx] &= mask; in ip6t_npt_map_pfx()
56 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; in ip6t_npt_map_pfx()
/openbmc/linux/include/rdma/
H A Dib_addr.h199 if (addr->s6_addr32[0] == htonl(0xfe800000) && in rdma_link_local_addr()
200 addr->s6_addr32[1] == 0) in rdma_link_local_addr()
220 ipv4_addr = addr->s6_addr32[3]; in rdma_is_multicast_addr()
/openbmc/linux/fs/nfs/
H A Dfscache.c67 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[0]) || in nfs_fscache_get_client_key()
68 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[1]) || in nfs_fscache_get_client_key()
69 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[2]) || in nfs_fscache_get_client_key()
70 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[3])) in nfs_fscache_get_client_key()

12345