Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/TR-181/middle_layer_src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ libCcspDhcpMgr_middle_layer_src_la_CPPFLAGS = -I$(top_srcdir)/source/TR-181/incl
-I$(top_srcdir)/source/DHCPClientUtils/DHCPv6Server/include

libCcspDhcpMgr_middle_layer_src_la_SOURCES = cosa_dhcpv4_internal.c cosa_dhcpv6_internal.c plugin_main.c cosa_apis_util.c cosa_dhcpv4_dml.c cosa_dhcpv6_dml.c cosa_webconfig_api.c cosa_x_cisco_com_devicecontrol_internal.c dhcpmgr_rbus_apis.c
libCcspDhcpMgr_middle_layer_src_la_LDFLAGS = -lccsp_common -lsyscfg -lsysevent -lsecure_wrapper -ltelemetry_msgsender
libCcspDhcpMgr_middle_layer_src_la_LDFLAGS = -lccsp_common -lsyscfg -lsysevent -lsecure_wrapper -ltelemetry_msgsender -lapi_dhcpv4c
6 changes: 4 additions & 2 deletions source/TR-181/middle_layer_src/cosa_dhcpv4_dml.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@

#include <syscfg/syscfg.h>
#include "dhcp_client_common_utils.h"
#include <dhcpv4c_api.h>

extern void* g_pDslhDmlAgent;
extern ANSC_HANDLE g_Dhcpv4Object;
Expand Down Expand Up @@ -808,8 +809,9 @@ Client_GetParamIntValue
if (strcmp(ParamName, "LeaseTimeRemaining") == 0)
{
/* collect value */
CosaDmlDhcpcGetInfo(NULL, pCxtLink->InstanceNumber, &pDhcpc->Info);

UINT leaseTimeRemaining = 0;
dhcpv4c_get_ert_remain_lease_time(&leaseTimeRemaining);
pDhcpc->Info.LeaseTimeRemaining = (int)leaseTimeRemaining;
Comment on lines 810 to +814
*pInt = pDhcpc->Info.LeaseTimeRemaining;

Comment on lines 811 to 816
return TRUE;
Expand Down
Loading