/third_party/node/test/cctest/ |
H A D | test_sockaddr.cc | 18 SocketAddress addr2(reinterpret_cast<const sockaddr*>(&storage2)); in TEST() 28 CHECK_NE(addr, addr2); in TEST() 32 CHECK_NE(SocketAddress::Hash()(addr), SocketAddress::Hash()(addr2)); in TEST() 90 SocketAddress addr2(reinterpret_cast<const sockaddr*>(&storage[1])); in TEST() 109 foo = lru.Upsert(addr2); in TEST() 112 CHECK_NOT_NULL(lru.Peek(addr2)); in TEST() 113 CHECK_EQ(lru.Peek(addr2)->c, 2); in TEST() 126 // addr2 was removed because it was expired. in TEST() 128 CHECK_NULL(lru.Peek(addr2)); in TEST() 142 SocketAddress addr2(reinterpret_cas in TEST() 203 std::shared_ptr<SocketAddress> addr2 = TEST() local [all...] |
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/ |
H A D | client_bus_center_test.cpp | 63 const ConnectionAddr addr2 = { in HWTEST_F() local 67 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F() 83 const ConnectionAddr addr2 = { in HWTEST_F() local 87 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F() 103 const ConnectionAddr addr2 = { in HWTEST_F() local 107 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F() 123 const ConnectionAddr addr2 = { in HWTEST_F() local 127 int32_t ret = IsSameConnectionAddr(&addr1, &addr2); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/core/bus_center/utils/ |
H A D | lnn_bus_center_utils_test.cpp | 76 ConnectionAddr addr2; in HWTEST_F() local 78 (void)memset_s(&addr2, sizeof(ConnectionAddr), 0, sizeof(ConnectionAddr)); in HWTEST_F() 87 (void)strcpy_s(addr2.info.br.brMac, BT_MAC_LEN, NODE2_BR_MAC); in HWTEST_F() 88 (void)strcpy_s(addr2.info.ble.bleMac, BT_MAC_LEN, NODE2_BLE_MAC); in HWTEST_F() 89 (void)memcpy_s(addr2.info.ble.udidHash, UDID_HASH_LEN, NODE2_UDID_HASH, UDID_HASH_LEN); in HWTEST_F() 90 (void)strcpy_s(addr2.info.ip.ip, IP_STR_MAX_LEN, NODE2_IP); in HWTEST_F() 91 addr2.info.ip.port = NODE2_PORT; in HWTEST_F() 92 addr2.info.session.sessionId = NODE2_SESSION_ID; in HWTEST_F() 93 addr2.info.session.channelId = NODE2_CHANNEL_ID; in HWTEST_F() 94 addr2 in HWTEST_F() [all...] |
/third_party/lwip/src/include/lwip/ |
H A D | ip6_addr.h | 150 #define ip6_addr_netcmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \ 151 ((addr1)->addr[1] == (addr2)->addr[1])) 157 * @param addr2 IPv6 address 2 160 #define ip6_addr_netcmp(addr1, addr2) (ip6_addr_netcmp_zoneless((addr1), (addr2)) && \ 161 ip6_addr_cmp_zone((addr1), (addr2))) 164 #define ip6_addr_nethostcmp(addr1, addr2) (((addr1)->addr[2] == (addr2)->addr[2]) && \ 165 ((addr1)->addr[3] == (addr2) [all...] |
H A D | ip_addr.h | 198 #define ip_addr_netcmp(addr1, addr2, mask) ((IP_IS_V6(addr1) && IP_IS_V6(addr2)) ? \ 200 ip4_addr_netcmp(ip_2_ip4(addr1), ip_2_ip4(addr2), mask)) 202 #define ip_addr_cmp(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \ 203 ip6_addr_cmp(ip_2_ip6(addr1), ip_2_ip6(addr2)) : \ 204 ip4_addr_cmp(ip_2_ip4(addr1), ip_2_ip4(addr2)))) 206 #define ip_addr_cmp_zoneless(addr1, addr2) ((IP_GET_TYPE(addr1) != IP_GET_TYPE(addr2)) ? 0 : (IP_IS_V6_VAL(*(addr1)) ? \ 207 ip6_addr_cmp_zoneless(ip_2_ip6(addr1), ip_2_ip6(addr2)) [all...] |
H A D | ip4_addr.h | 137 * @arg addr2 IP address 2 141 #define ip4_addr_netcmp(addr1, addr2, mask) (((addr1)->addr & \ 143 ((addr2)->addr & \ 145 #define ip4_addr_cmp(addr1, addr2) ((addr1)->addr == (addr2)->addr)
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap02.c | 40 static unsigned long *addr2; variable 84 addr2 = mmap((void *)low_addr2, map_sz, PROT_READ | PROT_WRITE, in test_hugemmap() 87 if (addr2 == MAP_FAILED) { in test_hugemmap() 94 if (addr2 == MAP_FAILED) in test_hugemmap() 97 else if (addr2 > 0) { in test_hugemmap() 110 if (munmap(addr2, map_sz) == -1) in test_hugemmap()
|
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_connection_addr_utils.c | 30 bool LnnIsSameConnectionAddr(const ConnectionAddr *addr1, const ConnectionAddr *addr2, bool isShort) in LnnIsSameConnectionAddr() argument 32 if (addr1 == NULL || addr2 == NULL) { in LnnIsSameConnectionAddr() 33 LNN_LOGD(LNN_STATE, "addr1 or addr2 is null"); in LnnIsSameConnectionAddr() 36 if (addr1->type != addr2->type) { in LnnIsSameConnectionAddr() 37 LNN_LOGD(LNN_STATE, "addr1 type not equal addr2 type"); in LnnIsSameConnectionAddr() 41 return strncmp(addr1->info.br.brMac, addr2->info.br.brMac, BT_MAC_LEN) == 0; in LnnIsSameConnectionAddr() 45 return memcmp(addr1->info.ble.udidHash, addr2->info.ble.udidHash, SHORT_UDID_HASH_LEN) == 0 || in LnnIsSameConnectionAddr() 46 strncmp(addr1->info.ble.bleMac, addr2->info.ble.bleMac, BT_MAC_LEN) == 0; in LnnIsSameConnectionAddr() 48 return memcmp(addr1->info.ble.udidHash, addr2->info.ble.udidHash, UDID_HASH_LEN) == 0 || in LnnIsSameConnectionAddr() 49 strncmp(addr1->info.ble.bleMac, addr2 in LnnIsSameConnectionAddr() [all...] |
/third_party/ltp/testcases/kernel/syscalls/bind/ |
H A D | bind06.c | 26 static struct sockaddr_ll addr1, addr2; variable 42 addr2.sll_family = AF_PACKET; in setup() 56 SAFE_BIND(fd, (struct sockaddr *)&addr2, sizeof(addr2)); in do_bind()
|
/third_party/musl/src/linux/ |
H A D | ptrace.c | 10 void *addr, *data, *addr2 = 0; in ptrace() local 20 addr2 = va_arg(ap, void *); in ptrace() 25 ret = syscall(SYS_ptrace, req, pid, addr, data, addr2); in ptrace()
|
/third_party/selinux/libsepol/src/ |
H A D | nodes.c | 187 unsigned int *addr2 = &c->u.node.addr; in sepol_node_exists() local 190 if (!memcmp(addr, addr2, 4) && in sepol_node_exists() 203 unsigned int *addr2 = c->u.node6.addr; in sepol_node_exists() local 206 if (!memcmp(addr, addr2, 16) && in sepol_node_exists() 247 unsigned int *addr2 = &c->u.node.addr; in sepol_node_query() local 250 if (!memcmp(addr, addr2, 4) && in sepol_node_query() 266 unsigned int *addr2 = c->u.node6.addr; in sepol_node_query() local 269 if (!memcmp(addr, addr2, 16) && in sepol_node_query()
|
/third_party/node/src/ |
H A D | node_win32_etw_provider-inl.h | 78 #define ETW_WRITE_V8ADDRESSCHANGE(descriptors, addr1, addr2) \ 80 ETW_WRITE_ADDRESS_DATA(descriptors + 1, &addr2); 195 void NODE_V8SYMBOL_REMOVE(const void* addr1, const void* addr2) { in NODE_V8SYMBOL_REMOVE() argument 198 ETW_WRITE_V8ADDRESSCHANGE(descriptors, addr1, addr2); in NODE_V8SYMBOL_REMOVE() 204 void NODE_V8SYMBOL_MOVE(const void* addr1, const void* addr2) { in NODE_V8SYMBOL_MOVE() argument 207 ETW_WRITE_V8ADDRESSCHANGE(descriptors, addr1, addr2); in NODE_V8SYMBOL_MOVE()
|
H A D | node_win32_etw_provider.h | 79 INLINE void NODE_V8SYMBOL_REMOVE(const void* addr1, const void* addr2); 80 INLINE void NODE_V8SYMBOL_MOVE(const void* addr1, const void* addr2);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | driver_wired.c | 173 struct sockaddr_in addr2; in wired_init_sockets() local 245 os_memset(&addr2, 0, sizeof(addr2)); in wired_init_sockets() 246 addr2.sin_family = AF_INET; in wired_init_sockets() 247 addr2.sin_port = htons(67); in wired_init_sockets() 248 addr2.sin_addr.s_addr = INADDR_ANY; in wired_init_sockets() 273 if (bind(drv->dhcp_sock, (struct sockaddr *) &addr2, in wired_init_sockets()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | driver_wired.c | 173 struct sockaddr_in addr2; in wired_init_sockets() local 245 os_memset(&addr2, 0, sizeof(addr2)); in wired_init_sockets() 246 addr2.sin_family = AF_INET; in wired_init_sockets() 247 addr2.sin_port = htons(67); in wired_init_sockets() 248 addr2.sin_addr.s_addr = INADDR_ANY; in wired_init_sockets() 273 if (bind(drv->dhcp_sock, (struct sockaddr *) &addr2, in wired_init_sockets()
|
/third_party/elfutils/tests/ |
H A D | show-die-info.c | 106 Dwarf_Addr addr2; in handle() local 111 || dwarf_formaddr (&attr, &addr2) != 0 in handle() 112 || addr != addr2) in handle() 124 Dwarf_Addr addr2; in handle() local 128 || dwarf_formaddr (&attr, &addr2) != 0 in handle() 129 || addr != addr2) in handle()
|
/third_party/ltp/utils/sctp/testlib/ |
H A D | sctputil.c | 346 static int cmp_addr(sockaddr_storage_t *addr1, sockaddr_storage_t *addr2) in cmp_addr() argument 348 if (addr1->sa.sa_family != addr2->sa.sa_family) in cmp_addr() 352 if (addr1->v6.sin6_port != addr2->v6.sin6_port) in cmp_addr() 354 return memcmp(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr, in cmp_addr() 357 if (addr1->v4.sin_port != addr2->v4.sin_port) in cmp_addr() 359 return memcmp(&addr1->v4.sin_addr, &addr2->v4.sin_addr, in cmp_addr()
|
/third_party/libuv/test/ |
H A D | test-tcp-bind6-error.c | 131 struct sockaddr_in6 addr2; in TEST_IMPL() local 139 ASSERT_OK(uv_ip6_addr("::", TEST_PORT_2, &addr2)); in TEST_IMPL() 145 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr2, 0); in TEST_IMPL()
|
H A D | test-udp-send-unreachable.c | 108 struct sockaddr_in addr2; in TEST_IMPL() local 119 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT_2, &addr2)); in TEST_IMPL() 131 r = uv_udp_bind(&client, (const struct sockaddr*) &addr2, 0); in TEST_IMPL()
|
/third_party/ltp/testcases/kernel/syscalls/msync/ |
H A D | msync03.c | 58 static char *addr2; variable 72 { &addr2, MS_SYNC, EINVAL }, 126 /* addr2 is not a multiple of PAGESIZE */ in setup() 127 addr2 = addr1 + 1; in setup()
|
/third_party/popt/tests/ |
H A D | test2.c | 34 static char *addr2 = NULL; variable 61 { "addr2", '2', POPT_ARG_STRING, &addr2, 0, in main() 62 "line 2 of address", "addr2" }, in main() 144 addr1,addr2, city, state, postal, in main()
|
/third_party/node/deps/v8/include/v8-include/cppgc/internal/ |
H A D | caged-heap.h | 34 V8_INLINE static bool AreWithinCage(const void* addr1, const void* addr2) { in AreWithinCage() argument 44 (reinterpret_cast<uintptr_t>(addr2) ^ g_heap_base_)) >> in AreWithinCage()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | sae.h | 128 int sae_prepare_commit(const u8 *addr1, const u8 *addr2, 132 const u8 *addr1, const u8 *addr2, 159 const u8 *addr1, const u8 *addr2); 162 const u8 *addr1, const u8 *addr2);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
H A D | btm_interop.c | 40 static bool IsMatchedAddr(const uint8_t addr1[BT_ADDRESS_SIZE], const BtAddr *addr2, uint8_t length) in IsMatchedAddr() argument 44 if (addr1[i] != addr2->addr[BT_ADDRESS_SIZE - 1 - i]) { in IsMatchedAddr()
|
/third_party/lwip/src/include/lwip/prot/ |
H A D | ethernet.h | 119 #define eth_addr_cmp(addr1, addr2) (memcmp((addr1)->addr, (addr2)->addr, ETH_HWADDR_LEN) == 0)
|