Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 19 of 19) sorted by relevance

/system/extras/multinetwork/
Dcommon.cpp122 std::string inetSockaddrToString(const sockaddr* sa) { in inetSockaddrToString() argument
123 const bool is_ipv6 = (sa->sa_family == AF_INET6); in inetSockaddrToString()
126 getnameinfo(sa, is_ipv6 ? sizeof(sockaddr_in6) : sizeof(sockaddr_in), in inetSockaddrToString()
Dcommon.h53 std::string inetSockaddrToString(const sockaddr* sa);
/system/extras/ANRdaemon/
DANRdaemon.cpp487 struct sigaction sa; in register_sighandler() local
496 sa.sa_flags = 0; in register_sighandler()
497 sa.sa_mask = block_mask; in register_sighandler()
498 sa.sa_handler = handle_signal; in register_sighandler()
499 sigaction(SIGQUIT, &sa, NULL); in register_sighandler()
500 sigaction(SIGSTOP, &sa, NULL); in register_sighandler()
501 sigaction(SIGCONT, &sa, NULL); in register_sighandler()
502 sigaction(SIGUSR1, &sa, NULL); in register_sighandler()
/system/netd/resolv/include/netd_resolv/
Dresolv.h36 struct sockaddr sa; member
/system/core/adb/
Dadb.cpp489 SECURITY_ATTRIBUTES* sa) { in _create_anonymous_pipe() argument
492 if (!CreatePipe(&pipe_read_raw, &pipe_write_raw, sa, 0)) { in _create_anonymous_pipe()
636 SECURITY_ATTRIBUTES sa; in launch_server() local
637 sa.nLength = sizeof(sa); in launch_server()
638 sa.lpSecurityDescriptor = NULL; in launch_server()
639 sa.bInheritHandle = TRUE; in launch_server()
651 FILE_SHARE_READ | FILE_SHARE_WRITE, &sa, OPEN_EXISTING, in launch_server()
664 if (!_create_anonymous_pipe(&ack_read, &ack_write, &sa)) { in launch_server()
668 if (!_create_anonymous_pipe(&stdout_read, &stdout_write, &sa)) { in launch_server()
672 if (!_create_anonymous_pipe(&stderr_read, &stderr_write, &sa)) { in launch_server()
/system/netd/resolv/
Dres_send.cpp235 if (!bind(s, &u.sa, slen)) return 0; in random_bind()
245 return bind(s, &u.sa, slen); in random_bind()
267 static int res_ourserver_p(const res_state statp, const sockaddr* sa) { in res_ourserver_p() argument
272 switch (sa->sa_family) { in res_ourserver_p()
274 inp = (const struct sockaddr_in*) (const void*) sa; in res_ourserver_p()
285 in6p = (const struct sockaddr_in6*) (const void*) sa; in res_ourserver_p()
656 static int get_salen(const struct sockaddr* sa) { in get_salen() argument
657 if (sa->sa_family == AF_INET) in get_salen()
659 else if (sa->sa_family == AF_INET6) in get_salen()
Dgetaddrinfo.cpp244 return _find_src_addr(&addr.sa, NULL, mark, uid) == 1; in have_ipv6()
253 return _find_src_addr(&addr.sa, NULL, mark, uid) == 1; in have_ipv4()
1192 scope_src1 = _get_scope(&a1->src_addr.sa); in _rfc6724_compare()
1196 scope_src2 = _get_scope(&a2->src_addr.sa); in _rfc6724_compare()
1215 label_src1 = _get_label(&a1->src_addr.sa); in _rfc6724_compare()
1219 label_src2 = _get_label(&a2->src_addr.sa); in _rfc6724_compare()
1361 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.sa, mark, uid); in _rfc6724_sort()
DDnsProxyListener.cpp347 bool isSpecialUseIPv4Address(const struct sockaddr* sa) { in isSpecialUseIPv4Address() argument
348 if (sa->sa_family != AF_INET) return false; in isSpecialUseIPv4Address()
350 return isSpecialUseIPv4Address(((struct sockaddr_in*) sa)->sin_addr); in isSpecialUseIPv4Address()
/system/netd/server/
DMDnsSdListener.cpp318 const struct sockaddr *const sa, uint32_t ttl, void *inContext) { in MDnsSdListenerGetAddrInfoCallback() argument
332 if (sa->sa_family == AF_INET) { in MDnsSdListenerGetAddrInfoCallback()
333 inet_ntop(sa->sa_family, &(((struct sockaddr_in *)sa)->sin_addr), addr, sizeof(addr)); in MDnsSdListenerGetAddrInfoCallback()
335 inet_ntop(sa->sa_family, &(((struct sockaddr_in6 *)sa)->sin6_addr), addr, sizeof(addr)); in MDnsSdListenerGetAddrInfoCallback()
DSockDiagTest.cpp183 bool fillDiagAddr(__be32 addr[4], const sockaddr *sa) { in fillDiagAddr() argument
184 switch (sa->sa_family) { in fillDiagAddr()
186 sockaddr_in *sin = (sockaddr_in *) sa; in fillDiagAddr()
191 sockaddr_in6 *sin6 = (sockaddr_in6 *) sa; in fillDiagAddr()
DMDnsSdListener.h46 const struct sockaddr *const sa, uint32_t ttl, void *inContext);
/system/netd/resolv/dns_responder/
Ddns_responder.cpp73 std::string addr2str(const sockaddr* sa, socklen_t sa_len) { in addr2str() argument
75 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, in addr2str()
937 sockaddr_storage sa; in handleQuery() local
938 socklen_t sa_len = sizeof(sa); in handleQuery()
941 len = recvfrom(socket_.get(), buffer, sizeof(buffer), 0, (sockaddr*)&sa, &sa_len); in handleQuery()
959 reinterpret_cast<const sockaddr*>(&sa), sa_len); in handleQuery()
960 std::string host_str = addr2str(reinterpret_cast<const sockaddr*>(&sa), sa_len); in handleQuery()
Ddns_tls_frontend.cpp70 std::string addr2str(const sockaddr* sa, socklen_t sa_len) { in addr2str() argument
72 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, in addr2str()
/system/ca-certificates/files/
Db0f3e76e.028 Issuer: C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
32 Subject: C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
/system/ca-certificates/google/files/
Db0f3e76e.028 Issuer: C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
32 Subject: C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
/system/core/adb/client/
Dcommandline.cpp634 struct sigaction sa; in RemoteShell() local
635 memset(&sa, 0, sizeof(sa)); in RemoteShell()
636 sa.sa_handler = [](int) {}; in RemoteShell()
637 sa.sa_flags = 0; in RemoteShell()
638 sigaction(SIGWINCH, &sa, nullptr); in RemoteShell()
/system/core/libnetutils/
Difc_utils.c226 static void init_sockaddr_in(struct sockaddr *sa, in_addr_t addr) in init_sockaddr_in() argument
228 struct sockaddr_in *sin = (struct sockaddr_in *) sa; in init_sockaddr_in()
/system/ca-certificates/google/
Droots.pem916 # Issuer: CN=GlobalSign Root CA O=GlobalSign nv-sa OU=Root CA
917 # Subject: CN=GlobalSign Root CA O=GlobalSign nv-sa OU=Root CA
/system/timezone/input_data/android/
Dcountryzones.txt2771 isoCode:"sa"