From 27d3c5907cc6f4366a7af3f0941d8d29d9b2440b Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Wed, 19 Jan 2011 18:57:22 -0800 Subject: Switch from NetworkUtils to netd for iface config. Moving more stuff to netd and getting rid of unused NetworkUtils. Change-Id: Ibb5a11dca58d07291fe33e6d33027553f6158ea7 --- core/java/android/net/NetworkUtils.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'core/java/android/net/NetworkUtils.java') diff --git a/core/java/android/net/NetworkUtils.java b/core/java/android/net/NetworkUtils.java index f1bf852..b0c974c 100644 --- a/core/java/android/net/NetworkUtils.java +++ b/core/java/android/net/NetworkUtils.java @@ -104,26 +104,6 @@ public class NetworkUtils { public native static String getDhcpError(); /** - * When static IP configuration has been specified, configure the network - * interface according to the values supplied. - * @param interfaceName the name of the interface to configure - * @param ipInfo the IP address, default gateway, and DNS server addresses - * with which to configure the interface. - * @return {@code true} for success, {@code false} for failure - */ - public static boolean configureInterface(String interfaceName, DhcpInfo ipInfo) { - return configureNative(interfaceName, - ipInfo.ipAddress, - ipInfo.netmask, - ipInfo.gateway, - ipInfo.dns1, - ipInfo.dns2); - } - - private native static boolean configureNative( - String interfaceName, int ipAddress, int netmask, int gateway, int dns1, int dns2); - - /** * Convert a IPv4 address from an integer to an InetAddress. * @param hostAddress an int corresponding to the IPv4 address in network byte order */ -- cgit v1.1