| Index: runtime/bin/socket_android.cc
|
| diff --git a/runtime/bin/socket_android.cc b/runtime/bin/socket_android.cc
|
| index abd2fc35cb2efe74965d8c794bcc5a6cda47490d..9fb4ac690f6520f0483e08c6d4fb5951c5eac78f 100644
|
| --- a/runtime/bin/socket_android.cc
|
| +++ b/runtime/bin/socket_android.cc
|
| @@ -244,6 +244,18 @@ bool Socket::ReverseLookup(RawAddr addr,
|
| }
|
|
|
|
|
| +bool Socket::ParseAddress(int type, const char* address, RawAddr* addr) {
|
| + int result;
|
| + if (type == SocketAddress::TYPE_IPV4) {
|
| + result = inet_pton(AF_INET, address, &addr->in.sin_addr);
|
| + } else {
|
| + ASSERT(type == SocketAddress::TYPE_IPV6);
|
| + result = inet_pton(AF_INET6, address, &addr->in6.sin6_addr);
|
| + }
|
| + return result == 1;
|
| +}
|
| +
|
| +
|
| AddressList<InterfaceSocketAddress>* Socket::ListInterfaces(
|
| int type,
|
| OSError** os_error) {
|
|
|