summaryrefslogtreecommitdiffstats
path: root/core/java/android/net/NetworkUtils.java
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2011-06-21 14:26:37 -0700
committerIrfan Sheriff <isheriff@google.com>2011-06-21 14:26:37 -0700
commit914ed90f2c02092474d2db36626734ca1b2cf315 (patch)
tree471389af70bac19ff570d00bacd3a66fc98a3365 /core/java/android/net/NetworkUtils.java
parent267a6181a53b5d50bbfcab7143a3b27822229471 (diff)
downloadframeworks_base-914ed90f2c02092474d2db36626734ca1b2cf315.zip
frameworks_base-914ed90f2c02092474d2db36626734ca1b2cf315.tar.gz
frameworks_base-914ed90f2c02092474d2db36626734ca1b2cf315.tar.bz2
Revert "DO NOT MERGE Revert "DO NOT MERGE Add DhcpStateMachine""
This reverts commit 58d1bb497e0d83e28a02fbcdc1f33f29a992db7e.
Diffstat (limited to 'core/java/android/net/NetworkUtils.java')
-rw-r--r--core/java/android/net/NetworkUtils.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/net/NetworkUtils.java b/core/java/android/net/NetworkUtils.java
index b3f3988..823d10f 100644
--- a/core/java/android/net/NetworkUtils.java
+++ b/core/java/android/net/NetworkUtils.java
@@ -80,6 +80,16 @@ public class NetworkUtils {
public native static boolean runDhcp(String interfaceName, DhcpInfoInternal ipInfo);
/**
+ * Initiate renewal on the Dhcp client daemon. This call blocks until it obtains
+ * a result (either success or failure) from the daemon.
+ * @param interfaceName the name of the interface to configure
+ * @param ipInfo if the request succeeds, this object is filled in with
+ * the IP address information.
+ * @return {@code true} for success, {@code false} for failure
+ */
+ public native static boolean runDhcpRenew(String interfaceName, DhcpInfoInternal ipInfo);
+
+ /**
* Shut down the DHCP client daemon.
* @param interfaceName the name of the interface for which the daemon
* should be stopped