RDK Documentation (Open Sourced RDK Components)
netsrvmgrUtiles.cpp File Reference

DeviceInfo X_RDKCENTRAL-COM_xBlueTooth API Implementation. More...

#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <ifaddrs.h>
#include <algorithm>
#include "NetworkMgrMain.h"
#include "netsrvmgrUtiles.h"
#include <string.h>
#include <errno.h>
#include "netsrvmgrIarm.h"
#include <net/if.h>
#include <arpa/inet.h>
Include dependency graph for netsrvmgrUtiles.cpp:

Go to the source code of this file.

Macros

#define IN_IS_ADDR_LINKLOCAL(a)   (((a) & htonl(0xffff0000)) == htonl (0xa9fe0000))
 
#define INTERFACE_SIZE   10
 
#define TRIGGER_DHCP_LEASE_FILE   "/lib/rdk/triggerDhcpLease.sh"
 
#define MAX_TIME_LENGTH   32
 
#define INTERFACE_STATUS_FILE_PATH_BUFFER   100
 
#define INTERFACE_STATUS_FILE_PATH   "/sys/class/net/%s/operstate"
 
#define ETHERNET_UP_STATUS   "UP"
 
#define STRCPY_S(dest, size, source)   strcpy(dest, source);
 

Functions

static bool loadKeyFile (const char *filename, GKeyFile *keyFile)
 
static bool writeKeyFile (const char *filename, GKeyFile *keyFile)
 
static bool getIPv6RouteInterface (char *devname)
 
static bool getIPv4RouteInterface (char *devname)
 

yes

DeviceInfo X_RDKCENTRAL-COM_xBlueTooth API Implementation.

This is the implementation of the netsrvmgr utility API.

Document
TBD Relevant design or API documentation.

Definition in file netsrvmgrUtiles.cpp.