diff options
author | Xiao Ma <xiaom@google.com> | 2019-07-05 07:46:34 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-07-05 07:46:34 -0700 |
commit | f093022d6c8186c9bb3e02cba10f76ca3f848d1e (patch) | |
tree | 6da997056111b477a3a564d93a6d8862acdfbbd0 /src/android/net/ip/IpClient.java | |
parent | fff7b07d00fbe0cacaf61dec80f5e28cec982c81 (diff) | |
parent | d53f5498850e2371843dfbba2bcaad7dd5cd74a3 (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.java | 10 |
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); } |