summaryrefslogtreecommitdiffstats
path: root/include/cutils
diff options
context:
space:
mode:
authorTao Wu <lepton@google.com>2016-09-19 16:50:10 -0700
committerTao Wu <lepton@google.com>2016-10-13 08:54:43 -0700
commit7b700763f5f5d749e46d0dbd2b5b0b2dd74efd6c (patch)
tree39f295312a27f20b2506bae3c61def5ff36a3a4b /include/cutils
parent58f7f61266259c7a9ef23b111b5414949da5163a (diff)
downloadsystem_core-7b700763f5f5d749e46d0dbd2b5b0b2dd74efd6c.tar.gz
system_core-7b700763f5f5d749e46d0dbd2b5b0b2dd74efd6c.tar.bz2
system_core-7b700763f5f5d749e46d0dbd2b5b0b2dd74efd6c.zip
Fallback to IPv6 when IPv4 is not available in adb
Test: manual - make sure it works in both IPv4/IPv6 env. BUG: 31537253 Change-Id: Ica492bff34a8c0441516a213d0e8b78fcdfd3282 Signed-off-by: Tao Wu <lepton@google.com>
Diffstat (limited to 'include/cutils')
-rw-r--r--include/cutils/sockets.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cutils/sockets.h b/include/cutils/sockets.h
index a93c8eaa4..b9c22c165 100644
--- a/include/cutils/sockets.h
+++ b/include/cutils/sockets.h
@@ -89,6 +89,7 @@ cutils_socket_t socket_network_client(const char* host, int port, int type);
int socket_network_client_timeout(const char* host, int port, int type,
int timeout, int* getaddrinfo_error);
int socket_loopback_server(int port, int type);
+int socket_loopback_server6(int port, int type);
int socket_local_server(const char* name, int namespaceId, int type);
int socket_local_server_bind(int s, const char* name, int namespaceId);
int socket_local_client_connect(int fd, const char *name, int namespaceId,