RDK Documentation (Open Sourced RDK Components)
Device_WiFi_SSID_Stats.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**
21  * @defgroup TR69_HOSTIF_WIFI_SSID_STAT TR-069 Object (Device.WiFi.SSID.{i}.Stats) Public APIs
22  *
23  * Throughput statistics for this interface.
24  *
25  * The CPE MUST reset the interface's Stats parameters (unless otherwise stated in individual object or
26  * parameter descriptions) either when the interface becomes operationally down due to a previous
27  * administrative down (i.e. the interface's Status parameter transitions to a down state after the
28  * interface is disabled) or when the interface becomes administratively up (i.e. the interface's Enable
29  * parameter transitions from false to true). Administrative and operational interface status is discussed
30  * in [Section 4.2.2/TR-181i2].
31  *
32  * @ingroup TR69_HOSTIF_WIFI
33  */
34 
35 /**
36 * @defgroup tr69hostif
37 * @{
38 * @defgroup hostif
39 * @{
40 **/
41 
42 
43 #ifndef DEVICE_WIFI_SSID_STATS_H_
44 #define DEVICE_WIFI_SSID_STATS_H_
45 
46 #include "hostIf_main.h"
47 #include "hostIf_utils.h"
48 #include "hostIf_tr69ReqHandler.h"
49 #include "hostIf_updateHandler.h"
50 
51 
53 
54  static GHashTable *ifHash;
55  int dev_id = 0; //CID:103281 - UNINIT_CTOR
56  hostIf_WiFi_SSID_Stats(int dev_id);
58 
59 public:
60  static class hostIf_WiFi_SSID_Stats *getInstance(int dev_id);
61  GList* getAllInstances();
62  static void closeInstance(hostIf_WiFi_SSID_Stats *);
63  static void closeAllInstances();
64 
65  unsigned long bytesSent;
66  unsigned long bytesReceived;
67  unsigned long packetsSent;
68  unsigned long packetsReceived;
69  unsigned int ErrorsSent;
70  unsigned int ErrorsReceived;
71  unsigned long UnicastPacketsSent;
72  unsigned long UnicastPacketsReceived;
73  unsigned int DiscardPacketsSent;
74  unsigned int DiscardPacketsReceived;
75  unsigned long MulticastPacketsSent;
76  unsigned long MulticastPacketsReceived;
77  unsigned long BroadcastPacketsSent;
78  unsigned long BroadcastPacketsReceived;
79  unsigned int UnknownProtoPacketsReceived;
80 
81  /**
82  * @ingroup TR69_HOSTIF_WIFI_SSID_STAT
83  * @{
84  */
85  /**
86  * @brief Get the total number of bytes transmitted out of the interface, including framing characters.
87  *
88  * This function provides the output as a unsinged long value available in
89  * Device.WiFi.SSID.Stats.BytesSent parameter.
90  *
91  * @param[out] stMsgData TR-069 Host interface message request.
92  *
93  * @return Returns 0 on success, otherwise will return the appropriate error code.
94  */
96 
97  /**
98  * @brief Get the total number of bytes received on the interface, including framing characters.
99  *
100  * This function provides the output as integer value available in Device.WiFi.SSID.Stats.BytesReceived parameter.
101  *
102  * @param[out] stMsgData TR-069 Host interface message request.
103  *
104  * @return Returns 0 on success, otherwise will return the appropriate error code.
105  */
107 
108  /**
109  * @brief Get the total number of packets transmitted out of the interface.
110  *
111  * This function provides the output as integer value available in Device.WiFi.SSID.Stats.PacketsSent parameter.
112  *
113  * @param[out] stMsgData TR-069 Host interface message request.
114  *
115  * @return Returns 0 on success, otherwise will return the appropriate error code.
116  */
118 
119  /**
120  * @brief Get the total number of packets received on the interface.
121  *
122  * This function provides the output as a integer value available in Device.WiFi.SSID.Stats.PacketsReceived parameter.
123  *
124  * @param[out] stMsgData TR-069 Host interface message request.
125  *
126  * @return Returns 0 on success, otherwise will return the appropriate error code.
127  */
129 
130  /**
131  * @brief Get the total number of outbound packets that could not be transmitted because of errors.
132  *
133  * This function provides the output as a integer value available in Device.WiFi.SSID.Stats.ErrorsSent parameter.
134  *
135  * @param[out] stMsgData TR-069 Host interface message request.
136  *
137  * @return Returns 0 on success, otherwise will return the appropriate error code.
138  */
140 
141  /**
142  * @brief Get the total number of inbound packets that contained errors preventing them from being delivered
143  * to a higher-layer protocol.
144  *
145  * This function provides the output as a integer value available in Device.WiFi.SSID.Stats.ErrorsReceived parameter.
146  *
147  * @param[out] stMsgData TR-069 Host interface message request.
148  *
149  * @return Returns 0 on success, otherwise will return the appropriate error code.
150  */
152 
153  /**
154  * @brief Get the total number of packets requested for transmission which were not addressed to a multicast
155  * or broadcast address at this layer, including those that were discarded or not sent.
156  *
157  * This function provides the output as integer value available in
158  * Device.WiFi.SSID.Stats.UnicastPacketsSent parameter.
159  *
160  * @param[out] stMsgData TR-069 Host interface message request.
161  *
162  * @return Returns 0 on success, otherwise will return the appropriate error code.
163  */
165 
166  /**
167  * @brief Get the total number of received packets, delivered by this layer to a higher layer,
168  * which were not addressed to a multicast or broadcast address at this layer.
169  *
170  * This function provides the output as a integer value available in
171  * Device.WiFi.SSID.Stats.UnicastPacketsReceived parameter.
172  *
173  * @param[out] stMsgData TR-069 Host interface message request.
174  *
175  * @return Returns 0 on success, otherwise will return the appropriate error code.
176  */
178 
179  /**
180  * @brief Get the total number of outbound packets which were chosen to be discarded even though no errors
181  * had been detected to prevent their being transmitted. One possible reason for discarding such a packet
182  * could be to free up buffer space.
183  *
184  * This function provides the output as a integer value available in
185  * Device.WiFi.SSID.Stats.DiscardPacketsSent parameter.
186  *
187  * @param[out] stMsgData TR-069 Host interface message request.
188  *
189  * @return Returns 0 on success, otherwise will return the appropriate error code.
190  */
192 
193  /**
194  * @brief Get the total number of inbound packets which were chosen to be discarded even though no
195  * errors had been detected to prevent their being delivered. One possible reason for discarding such a
196  * packet could be to free up buffer space.
197  *
198  * This function provides the output as a integer value available in
199  * Device.WiFi.SSID.Stats.DiscardPacketsReceived parameter.
200  *
201  * @param[out] stMsgData TR-069 Host interface message request.
202  *
203  * @return Returns 0 on success, otherwise will return the appropriate error code.
204  */
206 
207  /**
208  * @brief Get the total number of packets that higher-level protocols requested for transmission and
209  * which were addressed to a multicast address at this layer, including those that were discarded or not sent.
210  *
211  * This function provides the output as numeric value available in
212  * Device.WiFi.SSID.Stats.MulticastPacketsSent parameter.
213  *
214  * @param[out] stMsgData TR-069 Host interface message request.
215  *
216  * @return Returns 0 on success, otherwise will return the appropriate error code.
217  */
219 
220  /**
221  * @brief Get the total number of received packets, delivered by this layer to a higher layer,
222  * which were addressed to a multicast address at this layer.
223  *
224  * This function provides the output as a numeric value available in
225  * Device.WiFi.SSID.Stats.MulticastPacketsReceived parameter.
226  *
227  * @param[out] stMsgData TR-069 Host interface message request.
228  *
229  * @return Returns 0 on success, otherwise will return the appropriate error code.
230  */
232 
233  /**
234  * @brief Get the total number of packets that higher-level protocols requested for transmission and
235  * which were addressed to a broadcast address at this layer, including those that were discarded or not sent.
236  *
237  * This function provides the output as a numeric value available in
238  * Device.WiFi.SSID.Stats.BroadcastPacketsSent parameter.
239  *
240  * @param[out] stMsgData TR-069 Host interface message request.
241  *
242  * @return Returns 0 on success, otherwise will return the appropriate error code.
243  */
245 
246  /**
247  * @brief Get the total number of received packets, delivered by this layer to a higher layer,
248  * which were addressed to a broadcast address at this layer.
249  *
250  * This function provides the output as a numeric value available in
251  * Device.WiFi.SSID.Stats.BroadcastPacketsReceived parameter.
252  *
253  * @param[out] stMsgData TR-069 Host interface message request.
254  *
255  * @return Returns 0 on success, otherwise will return the appropriate error code.
256  */
258 
259  /**
260  * @brief Get the total number of packets received via the interface which were discarded because
261  * of an unknown or unsupported protocol.
262  *
263  * This function provides the output as a numeric value available in
264  * Device.WiFi.SSID.Stats.UnknownProtoPacketsReceived parameter.
265  *
266  * @param[out] stMsgData TR-069 Host interface message request.
267  *
268  * @return Returns 0 on success, otherwise will return the appropriate error code.
269  */
271 
272  /** @} */ //End of Doxygen tag TR69_HOSTIF_WIFI_SSID_STAT
273 };
274 
275 
276 #endif /* DEVICE_WIFI_SSID_STATS_H_ */
277 
278 
279 /** @} */
280 /** @} */
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_DiscardPacketsSent
int get_Device_WiFi_SSID_Stats_DiscardPacketsSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of outbound packets which were chosen to be discarded even though no errors had ...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_MulticastPacketsSent
int get_Device_WiFi_SSID_Stats_MulticastPacketsSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of packets that higher-level protocols requested for transmission and which were...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_DiscardPacketsReceived
int get_Device_WiFi_SSID_Stats_DiscardPacketsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of inbound packets which were chosen to be discarded even though no errors had b...
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_MulticastPacketsReceived
int get_Device_WiFi_SSID_Stats_MulticastPacketsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of received packets, delivered by this layer to a higher layer,...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_BytesSent
int get_Device_WiFi_SSID_Stats_BytesSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of bytes transmitted out of the interface, including framing characters.
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_PacketsSent
int get_Device_WiFi_SSID_Stats_PacketsSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of packets transmitted out of the interface.
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_UnicastPacketsSent
int get_Device_WiFi_SSID_Stats_UnicastPacketsSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of packets requested for transmission which were not addressed to a multicast or...
hostIf_main.h
hostIf_main API.
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_ErrorsReceived
int get_Device_WiFi_SSID_Stats_ErrorsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of inbound packets that contained errors preventing them from being delivered to...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_BroadcastPacketsSent
int get_Device_WiFi_SSID_Stats_BroadcastPacketsSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of packets that higher-level protocols requested for transmission and which were...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_ErrorsSent
int get_Device_WiFi_SSID_Stats_ErrorsSent(HOSTIF_MsgData_t *stMsgData)
Get the total number of outbound packets that could not be transmitted because of errors.
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_BytesReceived
int get_Device_WiFi_SSID_Stats_BytesReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of bytes received on the interface, including framing characters.
hostIf_WiFi_SSID_Stats
Definition: Device_WiFi_SSID_Stats.h:52
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_UnknownProtoPacketsReceived
int get_Device_WiFi_SSID_Stats_UnknownProtoPacketsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of packets received via the interface which were discarded because of an unknown...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_PacketsReceived
int get_Device_WiFi_SSID_Stats_PacketsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of packets received on the interface.
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_UnicastPacketsReceived
int get_Device_WiFi_SSID_Stats_UnicastPacketsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of received packets, delivered by this layer to a higher layer,...
hostIf_WiFi_SSID_Stats::get_Device_WiFi_SSID_Stats_BroadcastPacketsReceived
int get_Device_WiFi_SSID_Stats_BroadcastPacketsReceived(HOSTIF_MsgData_t *stMsgData)
Get the total number of received packets, delivered by this layer to a higher layer,...