RDK Documentation (Open Sourced RDK Components)
|
Functions | |
bool | netSrvMgrUtiles::getMacAddress_IfName (const char *ifName_in, char macAddress_out[18]) |
This function is used to get the MAC address for the provided interface. More... | |
void | netSrvMgrUtiles::triggerDhcpLease (const char *operation, const char *interface) |
This function trigger the process by which the DHCP client renews or updates its IP address configuration data with the DHCP server. More... | |
void | netSrvMgrUtiles::triggerDhcpRenew (const char *interface=NULL) |
void | netSrvMgrUtiles::triggerDhcpReleaseAndRenew (const char *interface) |
bool | netSrvMgrUtiles::getRouteInterface (char *devname) |
This function retrieves information about the active routing interface. More... | |
bool | netSrvMgrUtiles::readDevFile (char *deviceName) |
This function gets the device interface type(Ethernet/MOCA/WIFI) of the input device name. This function reads the device interface type from device properties file. More... | |
char | netSrvMgrUtiles::getAllNetworkInterface (char *devAllInterface) |
This function parse all the device interface details and gives all the network interface device name in the output buffer. This function also returns the total network interface count. More... | |
bool | netSrvMgrUtiles::getCurrentTime (char *currTime, const char *timeFormat) |
This function retrieves the current time using the requested format specifier. More... | |
bool | netSrvMgrUtiles::checkInterfaceActive (char *interfaceName) |
This function returns the Ethernet active status of the interface, if finds the status from interface status file. More... | |
bool | netSrvMgrUtiles::getSTBip (char *stbip, bool *isIpv6) |
This function is used to get STB IP address and its IP version. More... | |
bool | netSrvMgrUtiles::getInterfaceConfig (const char *ifName, const unsigned int family, char *interfaceIp, char *netMask) |
This function is used to get Interface IP address and on which interface. More... | |
bool | netSrvMgrUtiles::getDNSip (const unsigned int family, char *primaryDNS, char *secondaryDNS) |
This function is used to get Interface IP address and on which interface. More... | |
bool | netSrvMgrUtiles::getSTBip_family (char *stbip, const char *family) |
bool | netSrvMgrUtiles::getRouteInterfaceType (char *devname) |
This function gets the active interface device type(Ethernet/MOCA/WIFI). More... | |
bool | netSrvMgrUtiles::chk_ipaddr_linklocal (const char *stbip, unsigned int family) |
This function checks whether IP string(IPv4 and IPv6) is link local address or not. More... | |
bool | netSrvMgrUtiles::currentActiveInterface (char *currentInterface) |
This function is used to get the current active interface(WIFI/MOCA). More... | |
bool | netSrvMgrUtiles::check_global_v6_based_macaddress (std::string ipv6Addr, std::string macAddr) |
This function checks whether the input ipv6 address is based on specified mac address. More... | |
bool | netSrvMgrUtiles::check_global_v6_ula_address (std::string ipv6Addr) |
This function checks whether the input ipv6 address is Unique Local Address. More... | |
bool | netSrvMgrUtiles::getCommandOutput (const char *command, char *output_buffer, size_t output_buffer_size) |
This function is used to get the output of running the specified command. More... | |
bool | netSrvMgrUtiles::getNetMask_IfName (const char *ifName_in, const unsigned int, char *netMask_out) |
This function is used to get the NetMask address for the provided interface. More... | |
bool | netSrvMgrUtiles::isIPv4AddressScopeDocumentation (const std::string &ipv4_address) |
This function checks if the input ipv4 address is a unicast address reserved for documentation. More... | |
void | startMocaTelemetry () |
Initializes a thread to retrieve and send MoCA related telemetry data. | |
void * | mocaTelemetryThread (void *arg) |
This Thread function prints the statistics information on MOCA interface if the MOCA link is up. | |
static void | _mocaEventHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
static void | eventCallback (const enum RMH_Event event, const struct RMH_EventData *eventData, void *userContext) |
void | sendDefaultGatewayRoute () |
This function is used to init thread attributes and create thread to send route data event. | |
void * | sendDefaultGatewayRouteThrd (void *arg) |
Thread function handles the current route data by identifying appropriate IP mode to send route data event. This functions sends event to IARM client, so that listeners are notified by this event. | |
void | getGatewayRouteData () |
This function is used to init thread attributes and create thread to get route data. | |
static void | _evtHandler (const char *owner, IARM_EventId_t eventId, void *data, size_t len) |
void * | getGatewayRouteDataThrd (void *arg) |
When there is a new gateway data, this thread function used IARM Bus call to get XUPNP device information. Received gateway results would be parsed and append the gateway route data to the route list. | |
gboolean | checkvalidip (char *ipAddress) |
This will check whether the input IP Address is a valid IPv4 or IPv6 address. More... | |
gboolean | checkvalidhostname (char *hostname) |
This function will check whether a Host name is valid by validating all the associated IP addresses. More... | |
bool | checkIpMode (char *v6Prefix) |
This function is used to check whether the input IP Address belongs to IPv4 or IPv6 address. More... | |
WiFiStatusCode_t | get_WifiRadioStatus () |
This function is used to get WIFI connectivity status. More... | |
WiFiConnectionTypeCode_t | get_WifiConnectionType () |
This function is used to get WIFI connection type. More... | |
bool | ethernet_on () |
This function is used to get the ethernet connection ON/OFF status in order to proceed with IARM bus calls. More... | |
bool | updateWiFiList () |
This function gets the host interface parameters through IARM TR69 calls and update BSS identifier list data. More... | |
bool | shutdownWifi () |
This function is used to cancel all the WIFI related threads and un initialize the WIFI module. More... | |
bool | isWiFiCapable () |
This function is used to check whether the device supports wireless communication or not. More... | |
void | get_CurrentSsidInfo (WiFiConnectionStatus *currSsidConnInfo) |
This function is used to get current SSID and connection status from persistent memory. More... | |
void | put_boolean (char *ptr, bool val) |
This function converts the input data to Boolean type. More... | |
void | put_int (char *ptr, int val) |
This function converts the input data to integer type. More... | |
bool | storeMfrWifiCredentials (void) |
This function retrieve and store the WIFI credentials(SSID, password). More... | |
bool | eraseMfrWifiCredentials (void) |
This function erase the stored MFR WIFI credentials. More... | |
bool | getRadioStats (WiFi_Radio_Stats_Diag_Params *params) |
This function is used to get detail radio traffic statistics information. More... | |
void | getConnectedSSIDInfo (WiFiConnectedSSIDInfo_t *) |
This function is used to get the connected SSID informations such as SSID, BSSID, signal strength etc,. More... | |
void | getEndPointInfo (WiFi_EndPoint_Diag_Params *) |
This function checks for WIFI connection enable status, If connection enabled, then it provide WIFI statistics information such as enable status, SSID, signal strength, data transmission rate etc.,. More... | |
bool | cancelWPSPairingOperation () |
int | WiFiNetworkMgr::create_wpa_supplicant_conf_from_netapp_db (const char *wpa_supplicant_conf_file, const char *netapp_db_file) |
This function 1. Extract "SSID", "BSSID", "Password", "Security" from specified netapp_db_file. More... | |
Variables | |
ssidList | gSsidList |
bool netSrvMgrUtiles::getMacAddress_IfName | ( | const char * | ifName_in, |
char | macAddress_out[18] | ||
) |
This function is used to get the MAC address for the provided interface.
[in] | ifName_in | Indicates the interface name which the mac address is required. |
[out] | macAddress_out | Indicates the mac address of ifname_in interface name. |
void netSrvMgrUtiles::triggerDhcpLease | ( | const char * | operation, |
const char * | interface | ||
) |
This function trigger the process by which the DHCP client renews or updates its IP address configuration data with the DHCP server.
Triggers a "renew" or "release and renew" of DHCP lease on specified interface. If DHCP lease renew is requested, the specified interface may be NULL in which case a DHCP lease renew will be triggered for all interfaces running the DHCPv4 client. If DHCP lease release and renew is requested, the specified interface must not be NULL.
[in] | operation | DHCP lease renew / DHCP lease release and renew. |
[in] | interface | interface to operate on. |
[in] | operation | DHCP lease operation to perform ("renew" or "release and renew") |
[in] | interface | interface (wlan0, eth0, etc.) to perform DHCP lease operation on |
Definition at line 171 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getRouteInterface | ( | char * | devname | ) |
This function retrieves information about the active routing interface.
[out] | devname | Device name buffer to be filled. |
Definition at line 263 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::readDevFile | ( | char * | deviceName | ) |
This function gets the device interface type(Ethernet/MOCA/WIFI) of the input device name. This function reads the device interface type from device properties file.
[in/out] | Interface deviceName as input and Device type buffer to be filled as output. |
Definition at line 289 of file netsrvmgrUtiles.cpp.
char netSrvMgrUtiles::getAllNetworkInterface | ( | char * | devAllInterface | ) |
This function parse all the device interface details and gives all the network interface device name in the output buffer. This function also returns the total network interface count.
[out] | devAllInterface | Every interface device names. |
Definition at line 349 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getCurrentTime | ( | char * | currTime, |
const char * | timeFormat | ||
) |
This function retrieves the current time using the requested format specifier.
[out] | currTime | Current time to be filled. |
[in] | timeFormat | Requested time format to give the current time. |
Definition at line 389 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::checkInterfaceActive | ( | char * | interfaceName | ) |
This function returns the Ethernet active status of the interface, if finds the status from interface status file.
[out] | interfaceName | Interface name for which network status required. |
Definition at line 409 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getSTBip | ( | char * | stbip, |
bool * | isIpv6 | ||
) |
This function is used to get STB IP address and its IP version.
[out] | stbip | STB IP. |
[out] | isIpv6 | Internet Protocol Version. |
Definition at line 535 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getInterfaceConfig | ( | const char * | ifName, |
const unsigned int | family, | ||
char * | interfaceIp, | ||
char * | netMask | ||
) |
This function is used to get Interface IP address and on which interface.
[in] | ifName | ` Interface in string format. Valid values are "ETHERNET" or "WIFI" |
[in] | family | IP Address family in string format. Valid values are "ipv6" or "ipv4" |
[out] | InterfaceIP | IP of the Interface . |
[out] | netmask | Netmask of the interface |
Definition at line 481 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getDNSip | ( | const unsigned int | family, |
char * | primaryDNS, | ||
char * | secondaryDNS | ||
) |
This function is used to get Interface IP address and on which interface.
[out] | Interface | IP IP of the Interface . |
[out] | interface | Internet Protocol Version. |
Definition at line 1472 of file netSrvMgrMain.cpp.
bool netSrvMgrUtiles::getRouteInterfaceType | ( | char * | devname | ) |
This function gets the active interface device type(Ethernet/MOCA/WIFI).
[out] | devname | Device type buffer to be filled. |
Definition at line 272 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::chk_ipaddr_linklocal | ( | const char * | stbip, |
unsigned int | family | ||
) |
This function checks whether IP string(IPv4 and IPv6) is link local address or not.
[in] | stbip | STB IP. |
[in] | family | Interface family. |
Definition at line 636 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::currentActiveInterface | ( | char * | currentInterface | ) |
This function is used to get the current active interface(WIFI/MOCA).
[out] | currentInterface | Current active Interface. |
Definition at line 656 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::check_global_v6_based_macaddress | ( | std::string | ipv6Addr, |
std::string | macAddr | ||
) |
This function checks whether the input ipv6 address is based on specified mac address.
[in] | ipv6Addr | IP address. |
[in] | macAddr | MAC address. |
Definition at line 688 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::check_global_v6_ula_address | ( | std::string | ipv6Addr | ) |
This function checks whether the input ipv6 address is Unique Local Address.
[in] | ipv6Addr | IP address. |
Definition at line 719 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getCommandOutput | ( | const char * | command, |
char * | output_buffer, | ||
size_t | output_buffer_size | ||
) |
This function is used to get the output of running the specified command.
[in] | command | command to run. |
[out] | output_buffer | output buffer into which to put command's output |
[in] | output_buffer_size | output buffer size |
Definition at line 737 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::getNetMask_IfName | ( | const char * | ifName_in, |
const unsigned int | family, | ||
char * | netMask_out | ||
) |
This function is used to get the NetMask address for the provided interface.
[in] | ifName_in | Indicates the interface name which the netMask is required. |
[out] | netMask_out | Indicates the netMask address of ifname_in interface name. |
Definition at line 757 of file netsrvmgrUtiles.cpp.
bool netSrvMgrUtiles::isIPv4AddressScopeDocumentation | ( | const std::string & | ipv4_address | ) |
This function checks if the input ipv4 address is a unicast address reserved for documentation.
[in] | ipv4_address | IPv4 address. |
Definition at line 803 of file netsrvmgrUtiles.cpp.
gboolean checkvalidip | ( | char * | ipAddress | ) |
This will check whether the input IP Address is a valid IPv4 or IPv6 address.
[in] | ipAddress | IP Address in string format. |
Definition at line 4153 of file xdiscovery.c.
gboolean checkvalidhostname | ( | char * | hostname | ) |
This function will check whether a Host name is valid by validating all the associated IP addresses.
[in] | hostname | Host name represented as a string. |
Definition at line 4184 of file xdiscovery.c.
bool checkIpMode | ( | char * | v6Prefix | ) |
This function is used to check whether the input IP Address belongs to IPv4 or IPv6 address.
[in] | v6Prefix | IP prefix string. |
Definition at line 1009 of file routeSrvMgr.cpp.
WiFiStatusCode_t get_WifiRadioStatus | ( | ) |
This function is used to get WIFI connectivity status.
Definition at line 518 of file wifiHalUtiles.cpp.
WiFiConnectionTypeCode_t get_WifiConnectionType | ( | ) |
This function is used to get WIFI connection type.
Definition at line 541 of file wifiHalUtiles.cpp.
bool ethernet_on | ( | ) |
This function is used to get the ethernet connection ON/OFF status in order to proceed with IARM bus calls.
Definition at line 387 of file wifiHalUtiles.cpp.
bool updateWiFiList | ( | ) |
This function gets the host interface parameters through IARM TR69 calls and update BSS identifier list data.
bool shutdownWifi | ( | ) |
This function is used to cancel all the WIFI related threads and un initialize the WIFI module.
Definition at line 3955 of file wifiHalUtiles.cpp.
bool isWiFiCapable | ( | ) |
This function is used to check whether the device supports wireless communication or not.
Definition at line 1922 of file wifiHalUtiles.cpp.
void get_CurrentSsidInfo | ( | WiFiConnectionStatus * | currSsidConnInfo | ) |
This function is used to get current SSID and connection status from persistent memory.
[out] | currSsidConnInfo | SSID connection details structure. |
Definition at line 512 of file wifiHalUtiles.cpp.
void put_boolean | ( | char * | ptr, |
bool | val | ||
) |
This function converts the input data to Boolean type.
[in] | ptr | Address to store the boolean value. |
[in] | val | Boolean value. |
Definition at line 191 of file hostIf_utils.cpp.
void put_int | ( | char * | ptr, |
int | val | ||
) |
This function converts the input data to integer type.
[in] | ptr | Address to store the integer value. |
[in] | val | Integer value. |
Definition at line 152 of file hostIf_utils.cpp.
bool storeMfrWifiCredentials | ( | void | ) |
This function retrieve and store the WIFI credentials(SSID, password).
Definition at line 3264 of file wifiHalUtiles.cpp.
bool eraseMfrWifiCredentials | ( | void | ) |
This function erase the stored MFR WIFI credentials.
Definition at line 3342 of file wifiHalUtiles.cpp.
bool getRadioStats | ( | WiFi_Radio_Stats_Diag_Params * | params | ) |
This function is used to get detail radio traffic statistics information.
[out] | params | Structure that saves the traffic statistics. |
void getConnectedSSIDInfo | ( | WiFiConnectedSSIDInfo_t * | ) |
This function is used to get the connected SSID informations such as SSID, BSSID, signal strength etc,.
[out] | WiFiConnectedSSIDInfo_t | Structure that saves the connected SSID details. |
void getEndPointInfo | ( | WiFi_EndPoint_Diag_Params * | ) |
This function checks for WIFI connection enable status, If connection enabled, then it provide WIFI statistics information such as enable status, SSID, signal strength, data transmission rate etc.,.
[out] | WiFi_EndPoint_Diag_Params | WIFI end point diagnostic parameter. |
Definition at line 3364 of file wifiHalUtiles.cpp.
|
private |
This function 1. Extract "SSID", "BSSID", "Password", "Security" from specified netapp_db_file.
[in] | wpa_supplicant_conf_file | WPA supplicant configuration file to be created. |
[in] | netapp_db_file | NetAPP DB file to query configuration information. |
Definition at line 130 of file wifiSrvMgr.cpp.