From 9e0e9156e82b3098e39104469c0b24d68c19b880 Mon Sep 17 00:00:00 2001 From: gururaajar <83449026+gururaajar@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:11:16 -0500 Subject: [PATCH] Initialized IPstatus to lost in NetworkManagerInternalEventHandler for IARM_BUS_NETWORK_MANAGER_EVENT_INTERFACE_IPADDRESS (#42) --- NetworkManagerRDKProxy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NetworkManagerRDKProxy.cpp b/NetworkManagerRDKProxy.cpp index c6541f36..3ad434b0 100644 --- a/NetworkManagerRDKProxy.cpp +++ b/NetworkManagerRDKProxy.cpp @@ -457,11 +457,12 @@ namespace WPEFramework { IARM_BUS_NetSrvMgr_Iface_EventInterfaceIPAddress_t *e = (IARM_BUS_NetSrvMgr_Iface_EventInterfaceIPAddress_t*) data; interface = e->interface; - NMLOG_INFO ("IARM_BUS_NETWORK_MANAGER_EVENT_INTERFACE_IPADDRESS :: %s -- %s", interface.c_str(), e->ip_address); + NMLOG_INFO ("IARM_BUS_NETWORK_MANAGER_EVENT_INTERFACE_IPADDRESS: %s - %s - %s", interface.c_str(), e->ip_address, e->acquired?"Acquired":"Lost" +); if(interface == "eth0" || interface == "wlan0") { string ipversion("IPv4"); - Exchange::INetworkManager::IPStatus status; + Exchange::INetworkManager::IPStatus status = Exchange::INetworkManager::IP_LOST; if (e->is_ipv6) ipversion = "IPv6";