Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_stats.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2018 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_stats.h
28 *
29 * @purpose Switch Statistics
30 *
31 * @component OPEN
32 *
33 * @create 08/27/2012
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_STATS_H_INCLUDED
39 #define OPENAPI_STATS_H_INCLUDED
40 
41 #include <stdio.h>
42 #include <stddef.h>
43 #include <sys/un.h>
44 
45 #include "openapi_common.h"
46 
49 typedef enum
50 {
91 
128 
183 
185 
186 /*****************************************************************/
204  OPEN_COUNTER_ID_t counterId,
205  uint32_t ifNum,
206  uint64_t *counterValue);
207 
208 /*****************************************************************/
227  OPEN_COUNTER_ID_t counterId,
228  uint32_t ifNum,
229  open_buffdesc *counterValueStr);
230 
231 /*****************************************************************/
248  OPEN_COUNTER_ID_t counterId,
249  uint32_t ifNum);
250 
251 /*****************************************************************/
268  uint32_t *bufSize);
269 
270 /*****************************************************************/
303  uint32_t ifNum,
304  open_buffdesc *counterArray);
305 
306 /*****************************************************************/
320  uint32_t ifNum);
321 
322 /*****************************************************************/
339  uint32_t ifNum,
340  uint32_t *lastResetSecs);
341 
342 #endif /* OPENAPI_STATS_H_INCLUDED */
343