summaryrefslogtreecommitdiff
path: root/src/android/net/ip/IpClient.java
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2019-07-05 07:46:34 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-07-05 07:46:34 -0700
commitf093022d6c8186c9bb3e02cba10f76ca3f848d1e (patch)
tree6da997056111b477a3a564d93a6d8862acdfbbd0 /src/android/net/ip/IpClient.java
parentfff7b07d00fbe0cacaf61dec80f5e28cec982c81 (diff)
parentd53f5498850e2371843dfbba2bcaad7dd5cd74a3 (diff)
Merge "Add DHCP Rapid Commit option(RFC4039) support in client side."
am: d53f549885 Change-Id: I4a868d673f6263a5ad2d5acb475e99aac80b750c
Diffstat (limited to 'src/android/net/ip/IpClient.java')
-rw-r--r--src/android/net/ip/IpClient.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/android/net/ip/IpClient.java b/src/android/net/ip/IpClient.java
index ea19c7b..799184e 100644
--- a/src/android/net/ip/IpClient.java
+++ b/src/android/net/ip/IpClient.java
@@ -401,6 +401,14 @@ public class IpClient extends StateMachine {
NetworkStackServiceManager nssManager) {
return new NetworkStackIpMemoryStore(context, nssManager.getIpMemoryStoreService());
}
+
+ /**
+ * Get a DhcpClient Dependencies instance.
+ */
+ public DhcpClient.Dependencies getDhcpClientDependencies(
+ NetworkStackIpMemoryStore ipMemoryStore) {
+ return new DhcpClient.Dependencies(ipMemoryStore);
+ }
}
public IpClient(Context context, String ifName, IIpClientCallbacks callback,
@@ -1190,7 +1198,7 @@ public class IpClient extends StateMachine {
} else {
// Start DHCPv4.
mDhcpClient = DhcpClient.makeDhcpClient(mContext, IpClient.this, mInterfaceParams,
- mIpMemoryStore);
+ mDependencies.getDhcpClientDependencies(mIpMemoryStore));
mDhcpClient.registerForPreDhcpNotification();
mDhcpClient.sendMessage(DhcpClient.CMD_START_DHCP, mL2Key);
}