RDK Documentation (Open Sourced RDK Components)
RouteNetworkMgr Class Reference
Collaboration diagram for RouteNetworkMgr:
Collaboration graph

Public Member Functions

int Start ()
 

Static Public Member Functions

static RouteNetworkMgrgetInstance ()
 
static gboolean storeRouteDetails (unsigned int messageLength)
 This is invoked when there is a new gateway data. More...
 
static gboolean checkExistingRouteValid ()
 
static gboolean delRouteList ()
 
static gboolean setRoute ()
 
static gboolean sendCurrentRouteData ()
 

Static Private Member Functions

static bool getGatewayResults (char *gatewayResults, unsigned int messageLength)
 This function used IARM Bus call to get XUPNP device information and returns the result as a string. More...
 
static gboolean init_gwydata (GwyDeviceData *gwydata)
 
static gboolean free_gwydata (GwyDeviceData *gwydata)
 
static gboolean delGatewayList ()
 
static gboolean printGatewayList ()
 
static gboolean parse_store_gateway_data (char *array)
 
static gboolean getRouteInterface (char *routeIf)
 
static gboolean readDevFile (char *deviceFile, char *mocaIface, char *wifiIface)
 
static int getipaddress (char *ifname, char *ipAddressBuffer, gboolean ipv6Enabled)
 This function is used to get the IP address based on IPv6 or IPv4 is enabled. More...
 
static gboolean checkAddRouteInfo (char *ipAddr, bool isIPv4, char *ipv6Pfix)
 
static gboolean addRouteToList (char *ipAddr, bool isIPv4, char *ipv6Pfix)
 
static gboolean checkRemoveRouteInfo (char *ipAddr, bool isIPv4)
 
static gboolean removeRouteFromList (routeInfo *routeInfoData)
 
static gboolean printExistingRouteValid ()
 
static guint g_list_find_ip (routeInfo *gwData, gconstpointer *ip)
 
static guint g_list_find_gw (GwyDeviceData *gwData, gconstpointer *ip)
 
static gboolean getCurrentRoute (char *routeIp, gboolean *isIpv4)
 
static IARM_Result_t getCurrentRouteData (void *arg)
 

Static Private Attributes

static bool instanceIsReady = false
 
static RouteNetworkMgrinstance = NULL
 

yes

Definition at line 48 of file routeSrvMgr.h.

Member Function Documentation

◆ storeRouteDetails()

gboolean RouteNetworkMgr::storeRouteDetails ( unsigned int  messageLength)
static

This is invoked when there is a new gateway data.

Parameters
[in]messageLengthLength of buffer.
Returns
None.

Definition at line 226 of file routeSrvMgr.cpp.

◆ getGatewayResults()

bool RouteNetworkMgr::getGatewayResults ( char *  gatewayResults,
unsigned int  messageLength 
)
staticprivate

This function used IARM Bus call to get XUPNP device information and returns the result as a string.

Parameters
[out]gatewayResultsString to store discovery results.
[in]messageLengthUnsigned integer variable representing buffer length.
Returns
None.

Definition at line 165 of file routeSrvMgr.cpp.

◆ getipaddress()

int RouteNetworkMgr::getipaddress ( char *  ifname,
char *  ipAddressBuffer,
gboolean  ipv6Enabled 
)
staticprivate

This function is used to get the IP address based on IPv6 or IPv4 is enabled.

Parameters
[in]ifnameName of the network interface.
[out]ipAddressBufferCharacter buffer to hold the IP address.
[in]ipv6EnabledFlag to check whether IPV6 is enabled
Returns
Returns an integer value '1' if successfully gets the IP address else returns '0'.

Definition at line 819 of file routeSrvMgr.cpp.


The documentation for this class was generated from the following files: