/third_party/boost/libs/asio/include/boost/asio/ip/impl/ |
D | address_v6.ipp | 57 memcpy(addr_.s6_addr, bytes.data(), 16); 95 memcpy(bytes.data(), addr_.s6_addr, 16); 97 memcpy(bytes.elems, addr_.s6_addr, 16); 136 address_v4::bytes_type v4_bytes = { { addr_.s6_addr[12], 137 addr_.s6_addr[13], addr_.s6_addr[14], addr_.s6_addr[15] } }; 144 return ((addr_.s6_addr[0] == 0) && (addr_.s6_addr[1] == 0) 145 && (addr_.s6_addr[2] == 0) && (addr_.s6_addr[3] == 0) 146 && (addr_.s6_addr[4] == 0) && (addr_.s6_addr[5] == 0) 147 && (addr_.s6_addr[6] == 0) && (addr_.s6_addr[7] == 0) 148 && (addr_.s6_addr[8] == 0) && (addr_.s6_addr[9] == 0) [all …]
|
/third_party/boost/boost/asio/ip/impl/ |
D | address_v6.ipp | 57 memcpy(addr_.s6_addr, bytes.data(), 16); 95 memcpy(bytes.data(), addr_.s6_addr, 16); 97 memcpy(bytes.elems, addr_.s6_addr, 16); 136 address_v4::bytes_type v4_bytes = { { addr_.s6_addr[12], 137 addr_.s6_addr[13], addr_.s6_addr[14], addr_.s6_addr[15] } }; 144 return ((addr_.s6_addr[0] == 0) && (addr_.s6_addr[1] == 0) 145 && (addr_.s6_addr[2] == 0) && (addr_.s6_addr[3] == 0) 146 && (addr_.s6_addr[4] == 0) && (addr_.s6_addr[5] == 0) 147 && (addr_.s6_addr[6] == 0) && (addr_.s6_addr[7] == 0) 148 && (addr_.s6_addr[8] == 0) && (addr_.s6_addr[9] == 0) [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | arpa-inet.c | 61 in6->s6_addr[ 0] << 8 | in6->s6_addr[ 1], in inet_ntop() 62 in6->s6_addr[ 2] << 8 | in6->s6_addr[ 3], in inet_ntop() 63 in6->s6_addr[ 4] << 8 | in6->s6_addr[ 5], in inet_ntop() 64 in6->s6_addr[ 6] << 8 | in6->s6_addr[ 7], in inet_ntop() 65 in6->s6_addr[ 8] << 8 | in6->s6_addr[ 9], in inet_ntop() 66 in6->s6_addr[10] << 8 | in6->s6_addr[11], in inet_ntop() 67 in6->s6_addr[12] << 8 | in6->s6_addr[13], in inet_ntop() 68 in6->s6_addr[14] << 8 | in6->s6_addr[15]); in inet_ntop()
|
D | ipacl.c | 122 if ((uint8_t) ((e.address_ipv6.s6_addr[i]) << bits) != 0) { in pa_ip_acl_new() 219 if (sai->sin6_addr.s6_addr[i] != e->address_ipv6.s6_addr[i]) in pa_ip_acl_check() 224 if ((sai->sin6_addr.s6_addr[i] ^ e->address_ipv6.s6_addr[i]) >> (8 - bits) != 0) in pa_ip_acl_check()
|
/third_party/gettext/gettext-tools/src/ |
D | hostname.c | 306 ((addr).s6_addr[0] << 8) | (addr).s6_addr[1], \ 307 ((addr).s6_addr[2] << 8) | (addr).s6_addr[3], \ 308 ((addr).s6_addr[4] << 8) | (addr).s6_addr[5], \ 309 ((addr).s6_addr[6] << 8) | (addr).s6_addr[7], \ 310 ((addr).s6_addr[8] << 8) | (addr).s6_addr[9], \ 311 ((addr).s6_addr[10] << 8) | (addr).s6_addr[11], \ 312 ((addr).s6_addr[12] << 8) | (addr).s6_addr[13], \ 313 ((addr).s6_addr[14] << 8) | (addr).s6_addr[15])
|
/third_party/boost/boost/asio/ip/detail/impl/ |
D | endpoint.ipp | 60 data_.v6.sin6_addr.s6_addr[0] = 0; data_.v6.sin6_addr.s6_addr[1] = 0; 61 data_.v6.sin6_addr.s6_addr[2] = 0; data_.v6.sin6_addr.s6_addr[3] = 0; 62 data_.v6.sin6_addr.s6_addr[4] = 0; data_.v6.sin6_addr.s6_addr[5] = 0; 63 data_.v6.sin6_addr.s6_addr[6] = 0; data_.v6.sin6_addr.s6_addr[7] = 0; 64 data_.v6.sin6_addr.s6_addr[8] = 0; data_.v6.sin6_addr.s6_addr[9] = 0; 65 data_.v6.sin6_addr.s6_addr[10] = 0; data_.v6.sin6_addr.s6_addr[11] = 0; 66 data_.v6.sin6_addr.s6_addr[12] = 0; data_.v6.sin6_addr.s6_addr[13] = 0; 67 data_.v6.sin6_addr.s6_addr[14] = 0; data_.v6.sin6_addr.s6_addr[15] = 0; 94 memcpy(data_.v6.sin6_addr.s6_addr, bytes.data(), 16); 151 memcpy(bytes.data(), data_.v6.sin6_addr.s6_addr, 16); [all …]
|
/third_party/boost/libs/asio/include/boost/asio/ip/detail/impl/ |
D | endpoint.ipp | 60 data_.v6.sin6_addr.s6_addr[0] = 0; data_.v6.sin6_addr.s6_addr[1] = 0; 61 data_.v6.sin6_addr.s6_addr[2] = 0; data_.v6.sin6_addr.s6_addr[3] = 0; 62 data_.v6.sin6_addr.s6_addr[4] = 0; data_.v6.sin6_addr.s6_addr[5] = 0; 63 data_.v6.sin6_addr.s6_addr[6] = 0; data_.v6.sin6_addr.s6_addr[7] = 0; 64 data_.v6.sin6_addr.s6_addr[8] = 0; data_.v6.sin6_addr.s6_addr[9] = 0; 65 data_.v6.sin6_addr.s6_addr[10] = 0; data_.v6.sin6_addr.s6_addr[11] = 0; 66 data_.v6.sin6_addr.s6_addr[12] = 0; data_.v6.sin6_addr.s6_addr[13] = 0; 67 data_.v6.sin6_addr.s6_addr[14] = 0; data_.v6.sin6_addr.s6_addr[15] = 0; 94 memcpy(data_.v6.sin6_addr.s6_addr, bytes.data(), 16); 151 memcpy(bytes.data(), data_.v6.sin6_addr.s6_addr, 16); [all …]
|
/third_party/boost/boost/asio/ip/ |
D | address_v6_iterator.hpp | 113 if (address_.addr_.s6_addr[i] < 0xFF) in operator ++() 115 ++address_.addr_.s6_addr[i]; in operator ++() 119 address_.addr_.s6_addr[i] = 0; in operator ++() 138 if (address_.addr_.s6_addr[i] > 0) in operator --() 140 --address_.addr_.s6_addr[i]; in operator --() 144 address_.addr_.s6_addr[i] = 0xFF; in operator --()
|
/third_party/boost/libs/asio/include/boost/asio/ip/ |
D | address_v6_iterator.hpp | 113 if (address_.addr_.s6_addr[i] < 0xFF) in operator ++() 115 ++address_.addr_.s6_addr[i]; in operator ++() 119 address_.addr_.s6_addr[i] = 0; in operator ++() 138 if (address_.addr_.s6_addr[i] > 0) in operator --() 140 --address_.addr_.s6_addr[i]; in operator --() 144 address_.addr_.s6_addr[i] = 0xFF; in operator --()
|
/third_party/selinux/libsepol/cil/test/unit/ |
D | test_cil_post.c | 550 anodecon->addr->ip.v6.s6_addr[0] = '5'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6() 551 anodecon->mask->ip.v6.s6_addr[0] = '9'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6() 554 bnodecon->addr->ip.v6.s6_addr[0] = '3'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6() 555 bnodecon->mask->ip.v6.s6_addr[0] = '9'; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6() 573 anodecon->addr->ip.v6.s6_addr[0] = '3'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6() 574 anodecon->mask->ip.v6.s6_addr[0] = '1'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6() 577 bnodecon->addr->ip.v6.s6_addr[0] = '5'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6() 578 bnodecon->mask->ip.v6.s6_addr[0] = '1'; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6() 596 anodecon->addr->ip.v6.s6_addr[0] = '1'; in test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6() 597 anodecon->mask->ip.v6.s6_addr[0] = '4'; in test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6() [all …]
|
/third_party/musl/src/network/ |
D | lookup_name.c | 250 if (memcmp(a->s6_addr, defpolicy[i].addr, defpolicy[i].len)) in policyof() 252 if ((a->s6_addr[defpolicy[i].len] & defpolicy[i].mask) in policyof() 266 if (IN6_IS_ADDR_MULTICAST(a)) return a->s6_addr[1] & 15; in scopeof() 280 for (i=0; i<128 && !((s->s6_addr[i/8]^d->s6_addr[i/8])&(128>>(i%8))); i++); in prefixmatch() 379 memcpy(da6.sin6_addr.s6_addr, buf[i].addr, 16); in __lookup_name() 383 memcpy(sa6.sin6_addr.s6_addr, in __lookup_name() 385 memcpy(da6.sin6_addr.s6_addr+12, buf[i].addr, 4); in __lookup_name() 386 memcpy(da6.sin6_addr.s6_addr, in __lookup_name() 388 memcpy(da6.sin6_addr.s6_addr+12, buf[i].addr, 4); in __lookup_name() 404 sa6.sin6_addr.s6_addr+12, in __lookup_name()
|
/third_party/libcoap/examples/ |
D | coap-rd.c | 328 peer->addr.sin6.sin6_addr.s6_addr[0], in add_source_address() 329 peer->addr.sin6.sin6_addr.s6_addr[1], in add_source_address() 330 peer->addr.sin6.sin6_addr.s6_addr[2], in add_source_address() 331 peer->addr.sin6.sin6_addr.s6_addr[3], in add_source_address() 332 peer->addr.sin6.sin6_addr.s6_addr[4], in add_source_address() 333 peer->addr.sin6.sin6_addr.s6_addr[5], in add_source_address() 334 peer->addr.sin6.sin6_addr.s6_addr[6], in add_source_address() 335 peer->addr.sin6.sin6_addr.s6_addr[7], in add_source_address() 336 peer->addr.sin6.sin6_addr.s6_addr[8], in add_source_address() 337 peer->addr.sin6.sin6_addr.s6_addr[9], in add_source_address() [all …]
|
/third_party/node/deps/cares/src/lib/ |
D | ares__sortaddrinfo.c | 63 #define ARES_IPV6_ADDR_MC_SCOPE(a) ((a)->s6_addr[1] & 0x0f) 75 #define ARES_IN6_IS_ADDR_ULA(a) (((a)->s6_addr[0] & 0xfe) == 0xfc) 80 ((*(const unsigned int *)(const void *)(&(a)->s6_addr[0]) == ntohl(0x20010000))) 83 (((a)->s6_addr[0] == 0x20) && ((a)->s6_addr[1] == 0x02)) 86 (((a)->s6_addr[0] == 0x3f) && ((a)->s6_addr[1] == 0xfe))
|
/third_party/iptables/extensions/ |
D | libip6t_srh.c | 126 memset(srhinfo->psid_addr.s6_addr, 0, sizeof(srhinfo->psid_addr.s6_addr)); in srh1_init() 127 memset(srhinfo->nsid_addr.s6_addr, 0, sizeof(srhinfo->nsid_addr.s6_addr)); in srh1_init() 128 memset(srhinfo->lsid_addr.s6_addr, 0, sizeof(srhinfo->lsid_addr.s6_addr)); in srh1_init() 129 memset(srhinfo->psid_msk.s6_addr, 0, sizeof(srhinfo->psid_msk.s6_addr)); in srh1_init() 130 memset(srhinfo->nsid_msk.s6_addr, 0, sizeof(srhinfo->nsid_msk.s6_addr)); in srh1_init() 131 memset(srhinfo->lsid_msk.s6_addr, 0, sizeof(srhinfo->lsid_msk.s6_addr)); in srh1_init()
|
D | libebt_ip6.c | 244 memset(ipinfo->saddr.s6_addr, 0, sizeof(ipinfo->saddr.s6_addr)); in brip6_init() 245 memset(ipinfo->smsk.s6_addr, 0, sizeof(ipinfo->smsk.s6_addr)); in brip6_init() 246 memset(ipinfo->daddr.s6_addr, 0, sizeof(ipinfo->daddr.s6_addr)); in brip6_init() 247 memset(ipinfo->dmsk.s6_addr, 0, sizeof(ipinfo->dmsk.s6_addr)); in brip6_init()
|
/third_party/ltp/testcases/network/lib6/ |
D | in6_01.c | 56 in6.s6_addr[0] = ui8; in test_in6_addr() 58 if (sizeof(in6.s6_addr) != 16) in test_in6_addr() 74 in6.s6_addr[0] = ui8; in test_sockaddr_in6() 134 TEST(IN6_IS_ADDR_V4MAPPED(in6.s6_addr)); in test_in6_is_addr_v4mapped()
|
/third_party/ltp/testcases/lib/ |
D | tst_net_vars.c | 173 in6.s6_addr[j] = 0xff; in get_ipv6_netmask() 175 in6.s6_addr[j] = (unsigned long)(0xffU << (8 - i)); in get_ipv6_netmask() 276 mask.s6_addr[j] = 0xff; in get_ipv6_net32_unused() 278 mask.s6_addr[j] = (unsigned long)(0xffU << (8 - i)); in get_ipv6_net32_unused() 294 (rand() % 128) + (ip6->s6_addr[1] < 128 ? 128 : 0), in get_ipv6_net32_unused() 305 256 * (rand() % 128) + (256 * ip6->s6_addr[0] < 128 ? in get_ipv6_net32_unused() 540 vars.ipv6_lnetwork = get_ipv6_network(lip.s6_addr, lprefix_round); in get_ipv6_info() 541 vars.ipv6_rnetwork = get_ipv6_network(rip.s6_addr, rprefix_round); in get_ipv6_info()
|
/third_party/grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 56 if (memcmp(addr6->sin6_addr.s6_addr, kV4MappedPrefix, in grpc_sockaddr_is_v4mapped() 63 memcpy(&addr4_out->sin_addr, &addr6->sin6_addr.s6_addr[12], 4); in grpc_sockaddr_is_v4mapped() 86 memcpy(&addr6_out->sin6_addr.s6_addr[0], kV4MappedPrefix, 12); in grpc_sockaddr_to_v4mapped() 87 memcpy(&addr6_out->sin6_addr.s6_addr[12], &addr4->sin_addr, 4); in grpc_sockaddr_to_v4mapped() 118 if (addr6->sin6_addr.s6_addr[i] != 0) { in grpc_sockaddr_is_wildcard()
|
/third_party/grpc/test/core/iomgr/ |
D | sockaddr_utils_test.cc | 54 GPR_ASSERT(data_len == sizeof(addr6->sin6_addr.s6_addr)); in make_addr6() 55 memcpy(&addr6->sin6_addr.s6_addr, data, data_len); in make_addr6() 158 memset(&wild6_addr->sin6_addr.s6_addr, 0xbd, 1); in test_sockaddr_is_wildcard() 166 memset(&wild_mapped_addr->sin6_addr.s6_addr, 0xbd, 1); in test_sockaddr_is_wildcard()
|
/third_party/boost/boost/asio/detail/ |
D | old_win_sdk_compat.hpp | 67 #if !defined(s6_addr) 70 # define s6_addr _S6_un._S6_u8 macro
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | old_win_sdk_compat.hpp | 67 #if !defined(s6_addr) 70 # define s6_addr _S6_un._S6_u8 macro
|
/third_party/libwebsockets/lib/core-net/client/ |
D | conmon.c | 76 sin6_addr.s6_addr, in lws_conmon_append_copy_new_dns_results() 78 sin6_addr.s6_addr, 16)) in lws_conmon_append_copy_new_dns_results()
|
/third_party/iptables/iptables/ |
D | nft-ipv6.c | 91 if (memcmp(a->fw6.ipv6.src.s6_addr, b->fw6.ipv6.src.s6_addr, in nft_ipv6_is_same() 93 || memcmp(a->fw6.ipv6.dst.s6_addr, b->fw6.ipv6.dst.s6_addr, in nft_ipv6_is_same() 146 memcpy(cs->fw6.ipv6.src.s6_addr, &addr, sizeof(addr)); in nft_ipv6_parse_payload() 160 memcpy(cs->fw6.ipv6.dst.s6_addr, &addr, sizeof(addr)); in nft_ipv6_parse_payload()
|
/third_party/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 231 addr6->sin6_addr.s6_addr[10] = 0xff; in lws_interface_to_sa() 232 addr6->sin6_addr.s6_addr[11] = 0xff; in lws_interface_to_sa() 233 memcpy(&addr6->sin6_addr.s6_addr[12], in lws_interface_to_sa()
|
/third_party/ffmpeg/libavformat/ |
D | ip.c | 36 const uint8_t *s6_addr_a = ((const struct sockaddr_in6 *)a)->sin6_addr.s6_addr; in compare_addr() 37 const uint8_t *s6_addr_b = ((const struct sockaddr_in6 *)b)->sin6_addr.s6_addr; in compare_addr()
|