public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }
public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }
private static InetAddress disallowDeprecatedFormats(String address, InetAddress inetAddress) { // Only IPv4 addresses are problematic. if (!(inetAddress instanceof Inet4Address) || address.indexOf(':') != -1) { return inetAddress; } // If inet_pton(3) can't parse it, it must have been a deprecated format. // We need to return inet_pton(3)'s result to ensure that numbers assumed to be octal // by getaddrinfo(3) are reinterpreted by inet_pton(3) as decimal. return Libcore.os.inet_pton(AF_INET, address); }