Home
last modified time | relevance | path

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

12345

/linux/tools/testing/selftests/bpf/progs/
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 …]
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()
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])
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()
A Dtest_xdp.c172 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
203 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
204 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
/linux/net/ipv6/
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 …]
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()
A Dtcp_ipv6.c1994 src->s6_addr32[0], src->s6_addr32[1], in get_openreq6()
1995 src->s6_addr32[2], src->s6_addr32[3], in get_openreq6()
1997 dest->s6_addr32[0], dest->s6_addr32[1], in get_openreq6()
1998 dest->s6_addr32[2], dest->s6_addr32[3], in get_openreq6()
2060 src->s6_addr32[0], src->s6_addr32[1], in get_tcp6_sock()
2061 src->s6_addr32[2], src->s6_addr32[3], srcp, in get_tcp6_sock()
2062 dest->s6_addr32[0], dest->s6_addr32[1], in get_tcp6_sock()
2063 dest->s6_addr32[2], dest->s6_addr32[3], destp, in get_tcp6_sock()
2100 src->s6_addr32[0], src->s6_addr32[1], in get_timewait6_sock()
2101 src->s6_addr32[2], src->s6_addr32[3], srcp, in get_timewait6_sock()
[all …]
A Ddatagram.c38 return ipv6_addr_v4mapped(a) && (a->s6_addr32[3] == 0); in ipv6_mapped_addr_any()
186 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in __ip6_datagram_connect()
1053 src->s6_addr32[0], src->s6_addr32[1], in __ip6_dgram_sock_seq_show()
1054 src->s6_addr32[2], src->s6_addr32[3], srcp, in __ip6_dgram_sock_seq_show()
1055 dest->s6_addr32[0], dest->s6_addr32[1], in __ip6_dgram_sock_seq_show()
1056 dest->s6_addr32[2], dest->s6_addr32[3], destp, in __ip6_dgram_sock_seq_show()
/linux/include/net/
A Dipv6.h509 return !!(((a1->s6_addr32[0] ^ a2->s6_addr32[0]) & m->s6_addr32[0]) | in ipv6_masked_addr_cmp()
510 ((a1->s6_addr32[1] ^ a2->s6_addr32[1]) & m->s6_addr32[1]) | in ipv6_masked_addr_cmp()
511 ((a1->s6_addr32[2] ^ a2->s6_addr32[2]) & m->s6_addr32[2]) | in ipv6_masked_addr_cmp()
512 ((a1->s6_addr32[3] ^ a2->s6_addr32[3]) & m->s6_addr32[3])); in ipv6_masked_addr_cmp()
583 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
584 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
585 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
643 return (a->s6_addr32[0] | a->s6_addr32[1] | in ipv6_addr_any()
644 a->s6_addr32[2] | a->s6_addr32[3]) == 0; in ipv6_addr_any()
657 a->s6_addr32[2] ^ a->s6_addr32[3]); in ipv6_addr_hash()
[all …]
A Daddrconf.h438 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
447 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
448 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_nodes()
449 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
459 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
460 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_routers()
461 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
479 addr->s6_addr32[1] | in ipv6_addr_is_solict_mult()
480 (addr->s6_addr32[2] ^ htonl(0x00000001)) | in ipv6_addr_is_solict_mult()
494 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_all_snoopers()
[all …]
A Dif_inet6.h228 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
261 if ((addr->s6_addr32[0] | addr->s6_addr32[1] | in ipv6_ipgre_mc_map()
262 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) in ipv6_ipgre_mc_map()
264 memcpy(buf, &addr->s6_addr32[3], 4); in ipv6_ipgre_mc_map()
/linux/include/net/netfilter/
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()
/linux/arch/s390/include/asm/
A Dchecksum.h118 sum += (__force __u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
119 sum += (__force __u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
120 sum += (__force __u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
121 sum += (__force __u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
122 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
123 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
124 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
125 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/linux/net/netlabel/
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()
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()
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()
/linux/net/smc/
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()
/linux/net/netfilter/
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()
/linux/samples/bpf/
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()
A Dxdp_tx_iptunnel_kern.c173 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
207 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
208 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
/linux/tools/testing/selftests/net/
A Dioam6_parser.c520 return ((a1->s6_addr32[0] ^ a2->s6_addr32[0]) | in ipv6_addr_equal()
521 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
522 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
523 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
/linux/net/rds/
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()
/linux/net/ipv6/netfilter/
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()
/linux/include/rdma/
A Dib_addr.h222 if (addr->s6_addr32[0] == htonl(0xfe800000) && in rdma_link_local_addr()
223 addr->s6_addr32[1] == 0) in rdma_link_local_addr()
243 ipv4_addr = addr->s6_addr32[3]; in rdma_is_multicast_addr()

Completed in 50 milliseconds

12345