Home
last modified time | relevance | path

Searched refs:addr2 (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/node/test/cctest/
Dtest_sockaddr.cc18 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()
128 CHECK_NULL(lru.Peek(addr2)); in TEST()
142 SocketAddress addr2(reinterpret_cast<const sockaddr*>(&storage[1])); in TEST()
149 CHECK_EQ(addr1.compare(addr2), SocketAddress::CompareResult::LESS_THAN); in TEST()
[all …]
/third_party/lwip/src/include/lwip/
Dip6_addr.h150 #define ip6_addr_netcmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \ argument
151 ((addr1)->addr[1] == (addr2)->addr[1]))
160 #define ip6_addr_netcmp(addr1, addr2) (ip6_addr_netcmp_zoneless((addr1), (addr2)) && \ argument
161 ip6_addr_cmp_zone((addr1), (addr2)))
164 #define ip6_addr_nethostcmp(addr1, addr2) (((addr1)->addr[2] == (addr2)->addr[2]) && \ argument
165 ((addr1)->addr[3] == (addr2)->addr[3]))
168 #define ip6_addr_cmp_zoneless(addr1, addr2) (((addr1)->addr[0] == (addr2)->addr[0]) && \ argument
169 ((addr1)->addr[1] == (addr2)->addr[1]) && \
170 ((addr1)->addr[2] == (addr2)->addr[2]) && \
171 ((addr1)->addr[3] == (addr2)->addr[3]))
[all …]
Dip_addr.h198 #define ip_addr_netcmp(addr1, addr2, mask) ((IP_IS_V6(addr1) && IP_IS_V6(addr2)) ? \ argument
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_VA… argument
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… argument
207 ip6_addr_cmp_zoneless(ip_2_ip6(addr1), ip_2_ip6(addr2)) : \
208 ip4_addr_cmp(ip_2_ip4(addr1), ip_2_ip4(addr2))))
298 #define ip_addr_netcmp(addr1, addr2, mask) ip4_addr_netcmp(addr1, addr2, mask) argument
299 #define ip_addr_cmp(addr1, addr2) ip4_addr_cmp(addr1, addr2) argument
[all …]
Dip4_addr.h141 #define ip4_addr_netcmp(addr1, addr2, mask) (((addr1)->addr & \ argument
143 ((addr2)->addr & \
145 #define ip4_addr_cmp(addr1, addr2) ((addr1)->addr == (addr2)->addr) argument
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c40 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()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind06.c28 static struct sockaddr_ll addr1, addr2; variable
52 addr2.sll_family = AF_PACKET; in setup()
66 SAFE_BIND(fd, (struct sockaddr *)&addr2, sizeof(addr2)); in do_bind()
/third_party/selinux/libsepol/src/
Dnodes.c187 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/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_wired.c173 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/src/drivers/
Ddriver_wired.c173 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/musl/src/linux/
Dptrace.c10 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/node/src/
Dnode_win32_etw_provider-inl.h78 #define ETW_WRITE_V8ADDRESSCHANGE(descriptors, addr1, addr2) \ argument
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()
/third_party/ltp/utils/sctp/testlib/
Dsctputil.c346 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/openh264/codec/processing/src/mips/
Dvaa_mmi.c272 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
275 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
278 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
281 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
291 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
294 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
297 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
300 %[addr0], %[addr1], %[addr2]) in VAACalcSad_mmi()
332 [addr2]"=&r"(addr[2]) in VAACalcSad_mmi()
/third_party/elfutils/tests/
Dshow-die-info.c106 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/testcases/kernel/syscalls/msync/
Dmsync03.c58 static char *addr2; variable
72 { &addr2, MS_SYNC, EINVAL },
127 addr2 = addr1 + 1; in setup()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dsae.h123 int sae_prepare_commit(const u8 *addr1, const u8 *addr2,
127 const u8 *addr1, const u8 *addr2,
146 const u8 *addr1, const u8 *addr2);
149 const u8 *addr1, const u8 *addr2);
Dsae.c131 static void sae_pwd_seed_key(const u8 *addr1, const u8 *addr2, u8 *key) in sae_pwd_seed_key() argument
134 " addr2=" MACSTR, MAC2STR(addr1), MAC2STR(addr2)); in sae_pwd_seed_key()
135 if (os_memcmp(addr1, addr2, ETH_ALEN) > 0) { in sae_pwd_seed_key()
137 os_memcpy(key + ETH_ALEN, addr2, ETH_ALEN); in sae_pwd_seed_key()
139 os_memcpy(key, addr2, ETH_ALEN); in sae_pwd_seed_key()
282 const u8 *addr2, const u8 *password, in sae_derive_pwe_ecc() argument
335 sae_pwd_seed_key(addr1, addr2, addrs); in sae_derive_pwe_ecc()
448 const u8 *addr2, const u8 *password, in sae_derive_pwe_ffc() argument
480 sae_pwd_seed_key(addr1, addr2, addrs); in sae_derive_pwe_ffc()
1122 const u8 *addr1, const u8 *addr2) in sae_max_min_addr() argument
[all …]
/third_party/popt/tests/
Dtest2.c36 char *addr2 = NULL; variable
63 { "addr2", '2', POPT_ARG_STRING, &addr2, 0, in main()
146 addr1,addr2, city, state, postal, in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dms_funcs.c250 const unsigned char *addr2[3]; in generate_authenticator_response_pwhash() local
257 addr2[0] = response; in generate_authenticator_response_pwhash()
258 addr2[1] = challenge; in generate_authenticator_response_pwhash()
259 addr2[2] = magic2; in generate_authenticator_response_pwhash()
266 return sha1_vector(3, addr2, len2, response); in generate_authenticator_response_pwhash()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dms_funcs.c250 const unsigned char *addr2[3]; in generate_authenticator_response_pwhash() local
257 addr2[0] = response; in generate_authenticator_response_pwhash()
258 addr2[1] = challenge; in generate_authenticator_response_pwhash()
259 addr2[2] = magic2; in generate_authenticator_response_pwhash()
266 return sha1_vector(3, addr2, len2, response); in generate_authenticator_response_pwhash()
/third_party/libuv/test/
Dtest-tcp-bind6-error.c131 struct sockaddr_in6 addr2; in TEST_IMPL() local
139 ASSERT(0 == uv_ip6_addr("::", TEST_PORT_2, &addr2)); in TEST_IMPL()
145 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr2, 0); in TEST_IMPL()
Dtest-udp-send-unreachable.c108 struct sockaddr_in addr2; in TEST_IMPL() local
119 ASSERT_EQ(0, 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/lwip/src/include/lwip/prot/
Dethernet.h119 #define eth_addr_cmp(addr1, addr2) (memcmp((addr1)->addr, (addr2)->addr, ETH_HWADDR_LEN) == 0) argument
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dsae.c126 static void sae_pwd_seed_key(const u8 *addr1, const u8 *addr2, u8 *key) in sae_pwd_seed_key() argument
129 " addr2=" MACSTR, MAC2STR(addr1), MAC2STR(addr2)); in sae_pwd_seed_key()
130 if (os_memcmp(addr1, addr2, ETH_ALEN) > 0) { in sae_pwd_seed_key()
132 os_memcpy(key + ETH_ALEN, addr2, ETH_ALEN); in sae_pwd_seed_key()
134 os_memcpy(key, addr2, ETH_ALEN); in sae_pwd_seed_key()
277 const u8 *addr2, const u8 *password, in sae_derive_pwe_ecc() argument
334 sae_pwd_seed_key(addr1, addr2, addrs); in sae_derive_pwe_ecc()
454 const u8 *addr2, const u8 *password, in sae_derive_pwe_ffc() argument
487 sae_pwd_seed_key(addr1, addr2, addrs); in sae_derive_pwe_ffc()
616 int sae_prepare_commit(const u8 *addr1, const u8 *addr2, in sae_prepare_commit() argument
[all …]
/third_party/flutter/skia/infra/bots/recipe_modules/flavor/resources/
Dsymbolize_stack_trace.py70 addr2 = m.group('addr2')
73 addr = addr2

1234