|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
62 #ifndef DEVICE_IP_INTERFACE_IPV4ADDRESS_H_
63 #define DEVICE_IP_INTERFACE_IPV4ADDRESS_H_
69 #include "hostIf_tr69ReqHandler.h"
70 #include "hostIf_utils.h"
71 #include "hostIf_updateHandler.h"
129 static GHashTable *ifHash;
130 static GMutex *m_mutex;
133 char nameOfInterface[IF_NAMESIZE];
137 bool bCalledIPAddress;
138 bool bCalledSubnetMask;
139 bool bCalledAddressingType;
142 char backupStatus[BUFF_LENGTH_16];
144 char backupIPAddress[BUFF_LENGTH_64];
145 char backupSubnetMask[BUFF_LENGTH_64];
146 char backupAddressingType[BUFF_LENGTH_16];
151 void refreshInterfaceName ();
152 int getIPv4AddressAndMask (
int instance,
struct in_addr& in_address,
struct in_addr& in_mask);
154 bool hasPhysicalInterfaceAs (
char* phy_if_name);
155 int setIpOrMask(
int interfaceNo,
char *value,
const char* ipOrMask);
160 static GList* getAllInstances();
162 static void closeAllInstances();
164 static void getLock();
165 static void releaseLock();
167 int handleGetMsg (
const char* pSubSetting,
int subInstanceNumber,
HOSTIF_MsgData_t* stMsgData);
168 int handleSetMsg (
const char* pSubSetting,
int subInstanceNumber,
HOSTIF_MsgData_t* stMsgData);
int set_IPv4Address_SubnetMask(HOSTIF_MsgData_t *stMsgData, int subInstanceNo)
This function sets an IP Interface IPv4Address Subnet Mask of an IPv4 address.
int get_IPv4Address_IPAddress(HOSTIF_MsgData_t *stMsgData, int subInstanceNo, bool *pChanged=NULL)
This function used to get an IP Interface IPv4 IP Address.
static bool isLinkLocalAddress(const struct in_addr &in_address)
tests if an IPv4 address is link-local.
int set_IPv4Address_Alias(HOSTIF_MsgData_t *stMsgData, int subInstanceNo)
This function sets a non-volatile handle used to reference this IPv4 address instance of this IP inte...
This class provides the hostIf IPv4 interface address for getting interface address information.
int set_IPv4Address_Enable(HOSTIF_MsgData_t *stMsgData, int subInstanceNo)
This function sets the device IP Interface IPv4 Address to 'Enable' or 'Disable'.
int get_IPv4Address_AddressingType(HOSTIF_MsgData_t *stMsgData, int subInstanceNo, bool *pChanged=NULL)
This function gets an IP Interface IPv4 Address AddressingType assign the IP address....
int get_IPv4Address_Status(HOSTIF_MsgData_t *stMsgData, int subInstanceNo, bool *pChanged=NULL)
This function gets the status of an IPv4 Address table entry. It provides the status of this IPv4Addr...
int set_IPv4Address_IPAddress(HOSTIF_MsgData_t *stMsgData, int subInstanceNo)
This function sets an IP Interface IPv4 Address.
int get_IPv4Address_Enable(HOSTIF_MsgData_t *stMsgData, int subInstanceNo, bool *pChanged=NULL)
Get status (enabled/disabled) of IPv4 address.
hostIf_IPv4Address(int dev_id)
Class Constructor of the class hostIf_IPv4Address.
int get_IPv4Address_Alias(HOSTIF_MsgData_t *stMsgData, int subInstanceNo, bool *pChanged=NULL)
This function gets the instance handle for an IPv4 Address of an IP Interface. It provides a non-vola...
int get_IPv4Address_SubnetMask(HOSTIF_MsgData_t *stMsgData, int subInstanceNo, bool *pChanged=NULL)
This function gets an IP Interface IPv4 Address SubnetMask.