|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
78 #ifndef DEVICE_ETHERNET_INTERFACE_H_
79 #define DEVICE_ETHERNET_INTERFACE_H_
86 #include "hostIf_tr69ReqHandler.h"
87 #include "hostIf_utils.h"
88 #include "hostIf_updateHandler.h"
93 #define LL_LENGTH 1024
94 #define LENGTH_PARAMETER 64
123 char status[_BUF_LEN_16];
124 char alias[A_LENGTH];
126 unsigned int lastChange;
127 char lowerLayers[LL_LENGTH];
129 char mACAddress[S_LENGTH];
131 char duplexMode[_BUF_LEN_16];
202 static GHashTable *ifHash;
203 static GHashTable *m_notifyHash;
204 static GMutex *m_mutex;
210 int backupMaxBitRate;
211 char backupStatus[_BUF_LEN_16];
212 char backupName[_BUF_LEN_16];
213 char backupMACAddress[S_LENGTH];
214 char backupDuplexMode[_BUF_LEN_16];
219 bool bCalledUpstream;
220 bool bCalledMACAddress;
221 bool bCalledMaxBitRate;
222 bool bCalledDuplexMode;
232 static GList* getAllInstances();
234 static void closeAllInstances();
236 static void getLock();
238 static void releaseLock();
240 static GHashTable* getNotifyHash();
static int get_Device_Ethernet_InterfaceNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the number of entries in the Interface table.
static hostIf_EthernetInterface * getInstance(int dev_id)
struct Device_Ethernet_Interface EthernetInterface
It contains the members variables of the EthernetInterface structure.
int get_Device_Ethernet_Interface_MaxBitRate(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides the maximum upstream and downstream PHY bit rate supported by this Ethernet in...
int set_Device_Ethernet_Interface_Alias(HOSTIF_MsgData_t *)
This function sets a non-volatile handle used to reference this Ethernet interface instance....
int get_Device_Ethernet_Interface_Name(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the textual name of the 'Ethernet' interface.
int set_Device_Ethernet_Interface_LowerLayers(HOSTIF_MsgData_t *)
This function sets the 'Ethernet' interface 'LowerLayers'. Given a comma-separated list (maximum leng...
int get_Device_Ethernet_Interface_Upstream(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function indicates whether the interface points towards the Internet represent by 'true' or towa...
int set_Device_Ethernet_Interface_Enable(HOSTIF_MsgData_t *)
This function sets the status of 'Ethernet' interface as enabled or disabled.
int get_Device_Ethernet_Interface_LowerLayers(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides a comma-separated list (maximum length 1024) of strings. Each list item MUST b...
int get_Device_Ethernet_Interface_DuplexMode(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Duplex Mode available on an Ethernet Interface.
int get_Device_Ethernet_Interface_LastChange(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the time since an Ethernet interface's last change of status.
int set_Device_Ethernet_Interface_DuplexMode(HOSTIF_MsgData_t *)
This function sets the 'Duplex Mode' available on an ethernet Interface. This function sets the strin...
EEthInterfaceMembers
These values are the members of the EEthInterfaceMembers enum.
This class provides the interface for getting Device ethernet interface information.
int get_Device_Ethernet_Interface_MACAddress(HOSTIF_MsgData_t *, bool *pChanged=NULL)
This function provides the MAC Address of this Ethernet interface.
int get_Device_Ethernet_Interface_Enable(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the status (enabled/disabled) of an Ethernet interface.
hostIf_EthernetInterface(int dev_id)
Class Constructor of the class hostIf_EthernetInterface.
int get_Device_Ethernet_Interface_Status(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the status of an Ethernet Interface.
It contains the members variables of the EthernetInterface structure.
int set_Device_Ethernet_Interface_MaxBitRate(HOSTIF_MsgData_t *)
Set the maximum bit rate attainable on an Ethernet Interface.
int get_Device_Ethernet_Interface_Alias(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the instance handle for an Ethernet Interface.