Home
last modified time | relevance | path

Searched refs:mapped_addr (Results 1 – 10 of 10) sorted by relevance

/external/webrtc/p2p/base/
Dstun_server_unittest.cc90 const StunAddressAttribute* mapped_addr = in TEST_F() local
92 EXPECT_TRUE(mapped_addr != NULL); in TEST_F()
93 EXPECT_EQ(1, mapped_addr->family()); in TEST_F()
94 EXPECT_EQ(client_addr.port(), mapped_addr->port()); in TEST_F()
113 const StunAddressAttribute* mapped_addr = in TEST_F() local
115 EXPECT_TRUE(mapped_addr != NULL); in TEST_F()
116 EXPECT_EQ(1, mapped_addr->family()); in TEST_F()
117 EXPECT_EQ(client_addr.port(), mapped_addr->port()); in TEST_F()
136 const StunAddressAttribute* mapped_addr = in TEST_F() local
138 EXPECT_TRUE(mapped_addr == NULL); in TEST_F()
Dstun_server.cc93 std::unique_ptr<StunAddressAttribute> mapped_addr; in GetStunBindResponse() local
95 mapped_addr = StunAttribute::CreateAddress(STUN_ATTR_MAPPED_ADDRESS); in GetStunBindResponse()
97 mapped_addr = StunAttribute::CreateXorAddress(STUN_ATTR_XOR_MAPPED_ADDRESS); in GetStunBindResponse()
99 mapped_addr->SetAddress(remote_addr); in GetStunBindResponse()
100 response->AddAttribute(std::move(mapped_addr)); in GetStunBindResponse()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_client_posix.cc254 grpc_resolved_address* mapped_addr, in grpc_tcp_client_prepare_fd() argument
264 if (!grpc_sockaddr_to_v4mapped(addr, mapped_addr)) { in grpc_tcp_client_prepare_fd()
266 memcpy(mapped_addr, addr, sizeof(*mapped_addr)); in grpc_tcp_client_prepare_fd()
269 grpc_create_dualstack_socket(mapped_addr, SOCK_STREAM, 0, &dsmode, &fd); in grpc_tcp_client_prepare_fd()
275 if (!grpc_sockaddr_is_v4mapped(addr, mapped_addr)) { in grpc_tcp_client_prepare_fd()
276 memcpy(mapped_addr, addr, sizeof(*mapped_addr)); in grpc_tcp_client_prepare_fd()
279 if ((error = prepare_socket(mapped_addr, fd, channel_args)) != in grpc_tcp_client_prepare_fd()
283 addr_str = grpc_sockaddr_to_uri(mapped_addr); in grpc_tcp_client_prepare_fd()
346 grpc_resolved_address mapped_addr; in tcp_connect() local
350 if ((error = grpc_tcp_client_prepare_fd(channel_args, addr, &mapped_addr, in tcp_connect()
[all …]
Dtcp_client_posix.h50 grpc_resolved_address* mapped_addr,
/external/ltp/testcases/cve/
Dstack_clash.c56 static unsigned long mapped_addr; variable
61 unsigned long mmap_end = mapped_addr + MAPPED_LEN; in segv_handler()
70 diff = mapped_addr - fault_addr; in segv_handler()
74 mapped_addr, mmap_end, fault_addr, diff, THRESHOLD); in segv_handler()
154 mapped_addr = stack_addr - gap - MAPPED_LEN; in do_child()
156 mapped_addr = stack_addr + gap; in do_child()
158 mapped_addr &= page_mask; in do_child()
159 map = SAFE_MMAP((void *)mapped_addr, MAPPED_LEN, in do_child()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtcp_client_posix.cc247 grpc_resolved_address* mapped_addr, in grpc_tcp_client_prepare_fd() argument
254 if (!grpc_sockaddr_to_v4mapped(addr, mapped_addr)) { in grpc_tcp_client_prepare_fd()
256 memcpy(mapped_addr, addr, sizeof(*mapped_addr)); in grpc_tcp_client_prepare_fd()
259 grpc_create_dualstack_socket(mapped_addr, SOCK_STREAM, 0, &dsmode, fd); in grpc_tcp_client_prepare_fd()
265 if (!grpc_sockaddr_is_v4mapped(addr, mapped_addr)) { in grpc_tcp_client_prepare_fd()
266 memcpy(mapped_addr, addr, sizeof(*mapped_addr)); in grpc_tcp_client_prepare_fd()
269 if ((error = prepare_socket(mapped_addr, *fd, channel_args)) != in grpc_tcp_client_prepare_fd()
336 grpc_resolved_address mapped_addr; in tcp_connect() local
340 if ((error = grpc_tcp_client_prepare_fd(channel_args, addr, &mapped_addr, in tcp_connect()
346 channel_args, &mapped_addr, deadline, in tcp_connect()
Dtcp_client_posix.h50 grpc_resolved_address* mapped_addr,
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_win.cc124 uptr mapped_addr = in MmapAlignedOrDie() local
126 if (!mapped_addr) in MmapAlignedOrDie()
131 if (IsAligned(mapped_addr, alignment)) in MmapAlignedOrDie()
132 return (void*)mapped_addr; in MmapAlignedOrDie()
133 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0) in MmapAlignedOrDie()
141 (mapped_addr == 0 || !IsAligned(mapped_addr, alignment)); in MmapAlignedOrDie()
144 mapped_addr = in MmapAlignedOrDie()
146 if (!mapped_addr) in MmapAlignedOrDie()
151 uptr aligned_addr = RoundUpTo(mapped_addr, alignment); in MmapAlignedOrDie()
154 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0) in MmapAlignedOrDie()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_win.cpp178 uptr mapped_addr = in MmapAlignedOrDieOnFatalError() local
180 if (!mapped_addr) in MmapAlignedOrDieOnFatalError()
185 if (IsAligned(mapped_addr, alignment)) in MmapAlignedOrDieOnFatalError()
186 return (void*)mapped_addr; in MmapAlignedOrDieOnFatalError()
187 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0) in MmapAlignedOrDieOnFatalError()
195 (mapped_addr == 0 || !IsAligned(mapped_addr, alignment)); in MmapAlignedOrDieOnFatalError()
198 mapped_addr = in MmapAlignedOrDieOnFatalError()
200 if (!mapped_addr) in MmapAlignedOrDieOnFatalError()
204 uptr aligned_addr = RoundUpTo(mapped_addr, alignment); in MmapAlignedOrDieOnFatalError()
207 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0) in MmapAlignedOrDieOnFatalError()
[all …]
/external/libchrome/base/memory/
Dplatform_shared_memory_region.h173 bool ConvertToReadOnly(void* mapped_addr);