|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
57 #ifndef DEVICE_IP_INTERFACE_STATS_H_
58 #define DEVICE_IP_INTERFACE_STATS_H_
64 #include "hostIf_tr69ReqHandler.h"
65 #include "hostIf_utils.h"
66 #include "hostIf_updateHandler.h"
68 #define _LENGTH_PARAMETER 64
69 #define _PATH_SYS_CLASS_NET "/sys/class/net/"
79 unsigned long bytesSent;
80 unsigned long bytesReceived;
81 unsigned long packetsSent;
82 unsigned long packetsReceived;
83 unsigned long errorsSent;
84 unsigned long errorsReceived;
85 unsigned long unicastPacketsSent;
86 unsigned long unicastPacketsReceived;
87 unsigned long discardPacketsSent;
88 unsigned long discardPacketsReceived;
89 unsigned long multicastPacketsSent;
90 unsigned long multicastPacketsReceived;
91 unsigned long broadcastPacketsSent;
92 unsigned long broadcastPacketsReceived;
93 unsigned long unknownProtoPacketsReceived;
145 static GHashTable *ifHash;
147 static GMutex *m_mutex;
152 char nameOfInterface[IF_NAMESIZE];
157 void refreshInterfaceName ();
158 int getSysClassNetStatistic (
char* statistic,
unsigned long* result);
161 int backupBytesReceived;
162 int backupPacketsSent;
163 int backupPacketsReceived;
164 int backupErrorsSent;
165 int backupErrorsReceived;
166 int backupUnicastPacketsSent;
167 int backupUnicastPacketsReceived;
168 int backupDiscardPacketsSent;
169 int backupDiscardPacketsReceived;
170 int backupMulticastPacketsSent;
171 int backupMulticastPacketsReceived;
172 int backupBroadcastPacketsSent;
173 int backupBroadcastPacketsReceived;
174 int backupUnknownProtoPacketsReceived;
175 bool bCalledBytesSent;
176 bool bCalledBytesReceived;
177 bool bCalledPacketsSent;
178 bool bCalledPacketsReceived;
179 bool bCalledErrorsSent;
180 bool bCalledErrorsReceived;
181 bool bCalledUnicastPacketsSent;
182 bool bCalledUnicastPacketsReceived;
183 bool bCalledDiscardPacketsSent;
184 bool bCalledDiscardPacketsReceived;
185 bool bCalledMulticastPacketsSent;
186 bool bCalledMulticastPacketsReceived;
187 bool bCalledBroadcastPacketsSent;
188 bool bCalledBroadcastPacketsReceived;
189 bool bCalledUnknownProtoPacketsReceived;
197 static GList* getAllInstances();
199 static void closeAllInstances();
201 static void getLock();
203 static void releaseLock();
int get_Device_IP_Interface_Stats_UnicastPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of unicast packets received on the IP Interface. Provides the total num...
int get_Device_IP_Interface_Stats_BroadcastPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of broadcast packets received on the IP interface. It provides the tota...
hostIf_IPInterfaceStats(int dev_id)
Class Constructor of the class hostIf_IPInterfaceStats.
int get_Device_IP_Interface_Stats_UnicastPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of unicast packets for which a request to send on the IP Interface was ...
int get_Device_IP_Interface_Stats_PacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the total number of packets received on the IP Interface.
int get_Device_IP_Interface_Stats_DiscardPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of discarded inbound packets on the IP Interface. It provides the total...
int get_Device_IP_Interface_Stats_UnknownProtoPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of Packets of unidentified protocol received on the IP Interface....
int get_Device_IP_Interface_Stats_BytesReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of bytes received on the IP Interface. It provides the total number of ...
int get_Device_IP_Interface_Stats_BroadcastPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of broadcast packets sent on the IP Interface. It provides the total nu...
int get_Device_IP_Interface_Stats_PacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the number of packets sent on the IP Interface.
struct Device_IP_Interface_Stats IPInterfaceStats
It contains the members variables of the Device_IP_Interface_stats structure.
int get_Device_IP_Interface_Stats_DiscardPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of discarded outbound packets on the IP Interface. It provides the tota...
int get_Device_IP_Interface_Stats_ErrorsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of receive errors on the IP Interface. It provides the total number of ...
This class provides the hostIf IP interface stats for getting IP interface stats information.
int get_Device_IP_Interface_Stats_BytesSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of bytes sent on the IP Interface. It provides the total number of byte...
int get_Device_IP_Interface_Stats_MulticastPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of Multicast Packets received on the IP Interface. It provides the tota...
int get_Device_IP_Interface_Stats_MulticastPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of Multicast Packets sent on the IP Interface. It provides the total nu...
int get_Device_IP_Interface_Stats_ErrorsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This function gets the number of send errors on the IP Interface. It provides the total number of out...
It contains the members variables of the Device_IP_Interface_stats structure.