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
3 changes: 0 additions & 3 deletions source/WanManager/wanmgr_dhcpv4_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ ANSC_STATUS wanmgr_handle_dhcpv4_event_data(DML_VIRTUAL_IFACE* pVirtIf)
snprintf(value, sizeof(value), "%d", pDhcpcInfo->upstreamCurrRate);
sysevent_set(sysevent_fd, sysevent_token, name, value, 0);

snprintf(name, sizeof(name), SYSEVENT_IPV4_LEASE_TIME, pDhcpcInfo->dhcpcInterface);
snprintf(value, sizeof(value), "%d", pDhcpcInfo->leaseTime);
sysevent_set(sysevent_fd, sysevent_token, name, value, 0);

#if !defined(FEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE)
if (pDhcpcInfo->isTimeOffsetAssigned)
Expand Down
22 changes: 1 addition & 21 deletions source/WanManager/wanmgr_sysevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,6 @@ ANSC_STATUS wanmgr_sysevents_ipv4Info_set(const ipc_dhcpv4_data_t* dhcp4Info, co

sysevent_set(sysevent_fd, sysevent_token,SYSEVENT_IPV4_TIME_ZONE, dhcp4Info->timeZone, 0);

snprintf(name,sizeof(name),SYSEVENT_IPV4_DHCP_SERVER,dhcp4Info->dhcpcInterface);
sysevent_set(sysevent_fd, sysevent_token,name, dhcp4Info->dhcpServerId,0);

snprintf(name,sizeof(name),SYSEVENT_IPV4_DHCP_STATE ,dhcp4Info->dhcpcInterface);
sysevent_set(sysevent_fd, sysevent_token,name, dhcp4Info->dhcpState,0);

snprintf(name,sizeof(name), SYSEVENT_IPV4_LEASE_TIME, dhcp4Info->dhcpcInterface);
snprintf(value, sizeof(value), "%u",dhcp4Info->leaseTime);
sysevent_set(sysevent_fd, sysevent_token,name, value, 0);

return ANSC_STATUS_SUCCESS;
Comment thread
aadhithan01 marked this conversation as resolved.
}

Expand Down Expand Up @@ -275,17 +265,7 @@ if ( TRUE == UseWANMACForManagementServices )
}

sysevent_set(sysevent_fd, sysevent_token,SYSEVENT_IPV4_TIME_ZONE, dhcp4Info->timeZone, 0);

snprintf(name,sizeof(name),SYSEVENT_IPV4_DHCP_SERVER,dhcp4Info->ifname);
sysevent_set(sysevent_fd, sysevent_token,name, dhcp4Info->dhcpServerId,0);

snprintf(name,sizeof(name),SYSEVENT_IPV4_DHCP_STATE ,dhcp4Info->ifname);
sysevent_set(sysevent_fd, sysevent_token,name, dhcp4Info->dhcpState,0);

snprintf(name,sizeof(name), SYSEVENT_IPV4_LEASE_TIME, dhcp4Info->ifname);
snprintf(value, sizeof(value), "%u",dhcp4Info->leaseTime);
sysevent_set(sysevent_fd, sysevent_token,name, value, 0);


Comment thread
aadhithan01 marked this conversation as resolved.
#endif
Comment thread
aadhithan01 marked this conversation as resolved.
return ANSC_STATUS_SUCCESS;
}
Expand Down