Take the DHCP lease duration arg on the message to IpClient.
DHCP lease duration is also required when IpClient sends a RTM_NEWADDR
message to kernel to install an IPv4 address(preferred/valid params).
Put the lease duration as arg1 in the state machine message and IPv4
link address as object param.
Bug: 129660498
Test: TH
Change-Id: Ia5eabef06a9485475ae6369ab48646cd5dcf2871
diff --git a/src/android/net/dhcp/DhcpClient.java b/src/android/net/dhcp/DhcpClient.java
index 5633b54..4e6a222 100644
--- a/src/android/net/dhcp/DhcpClient.java
+++ b/src/android/net/dhcp/DhcpClient.java
@@ -1490,7 +1490,8 @@
// IpClient sees the IP address appear, it will enter provisioned state without any
// configuration information from DHCP. http://b/146850745.
notifySuccess();
- mController.sendMessage(CMD_CONFIGURE_LINKADDRESS, mDhcpLease.ipAddress);
+ mController.sendMessage(CMD_CONFIGURE_LINKADDRESS, mDhcpLease.leaseDuration, 0,
+ mDhcpLease.ipAddress);
}
@Override