20 #ifndef _NETWORKMGRMAIN_H_
21 #define _NETWORKMGRMAIN_H_
25 #include <sys/types.h>
33 #include <sys/types.h>
39 #ifdef ENABLE_SD_NOTIFY
40 #include <systemd/sd-daemon.h>
45 #include "NetworkMedium.h"
48 #include "comcastIrKeyCodes.h"
56 #define IARM_BUS_NM_SRV_MGR_NAME "NET_SRV_MGR"
58 #define WIFI_CONFIG "WiFiMgr_Config"
60 #define MAX_TIMEOUT_ON_DISCONNECT "MAX_TIMEOUT_ON_DISCONNECT"
61 #define ENABLE_LOST_FOUND_RUN "ENABLE_LOST_FOUND"
62 #define LAF_CONNECT_RETRY_INTERVAL "LAF_CONNECT_RETRY_INTERVAL"
63 #define LAF_CONNECT_START_INTERVAL "LAF_CONNECT_START_INTERVAL"
64 #define AUTHSERVER_URL "AUTHSERVER_URL"
65 #define GET_AUTHTOKEN_URL "GET_AUTHTOKEN_URL"
66 #define GET_LFAT_URL "GET_LFAT_URL"
67 #define SET_LFAT_URL "SET_LFAT_URL"
68 #define DISABLE_WPS_XRE "disableWpsXRE"
69 #define LFAT_VERSION "LFAT_VERSION"
70 #define LFAT_TTL "LFAT_TTL"
71 #define LAF_CONNECTION_RETRY "LAF_CONNECTION_RETRY"
73 #define STUN_CONFIG "Stun_Config"
74 #define STUN_SERVER "STUN_SERVER"
75 #define STUN_PORT "STUN_PORT"
76 #define STUN_INTERFACE "STUN_INTERFACE"
77 #define STUN_IPV6 "STUN_IPV6"
78 #define STUN_BIND_TIMEOUT "STUN_BIND_TIMEOUT"
79 #define STUN_CACHE_TIMEOUT "STUN_CACHE_TIMEOUT"
81 #define WIFI_BCK_PATHNAME "/opt/persistent/wifi"
82 #define WIFI_BCK_FILENAME "/opt/persistent/wifi/wifiConnectionInfo.json"
83 #define WIFI_CONN_DETAILS "wifi_conn_details"
84 #define SSID_STR "ssid"
86 #define CONN_TYPE "conn_type"
87 #define MAX_TIME_OUT_PERIOD 60
88 #define BUFFER_SIZE_128 128
91 #define TELEMETRY_LOGGING_PARAM_FILE "/etc/netsrvmgr_Telemetry_LoggingParams.json"
92 #define T_PERIOD_1_INTERVAL "wifi_period1_time"
93 #define T_PERIOD_1_PARAMETER_LIST "wifi_parameter_list_period1"
94 #define T_PERIOD_2_INTERVAL "wifi_period2_time"
95 #define T_PERIOD_2_PARAMETER_LIST "wifi_parameter_list_period2"
104 typedef enum _WiFiResult
109 WiFiResult_readError,
110 WiFiResult_writeError,
111 WiFiResult_invalidParameter,
117 unsigned short max_timeout;
118 bool bEnableLostFound;
119 unsigned short lnfRetryInSecs;
120 unsigned short lnfStartInSecs;
121 char authServerURL[BUFFER_SIZE_128];
123 char getAuthTokenUrl[BUFFER_SIZE_128];
124 char getLfatUrl[BUFFER_SIZE_128];
125 char setLfatUrl[BUFFER_SIZE_128];
126 char lfatVersion[BUFFER_SIZE_128];
127 unsigned short lnfRetryCount;
128 unsigned int lfatTTL;
133 char server[BUFFER_SIZE_128];
137 uint16_t bind_timeout;
138 uint16_t cache_timeout;
149 #if !defined(ENABLE_XCAM_SUPPORT) && !defined(XHB1) && !defined(XHC3)
150 bool isInterfaceEnabled(
const char* interface,
bool& enabled);
151 #endif // if !defined(ENABLE_XCAM_SUPPORT) && !defined(XHB1) && !defined(XHC3)