1 /*
2  * Note: this file originally auto-generated by mib2c using
3  *       version : 14170 $ of $
4  *
5  * $Id:$
6  */
7 #ifndef ETHERSTATSTABLE_DATA_ACCESS_H
8 #define ETHERSTATSTABLE_DATA_ACCESS_H
9 
10 #ifdef __cplusplus
11 extern          "C" {
12 #endif
13 
14 
15     /*
16      *********************************************************************
17      * function declarations
18      */
19 
20     /*
21      *********************************************************************
22      * Table declarations
23      */
24 /**********************************************************************
25  **********************************************************************
26  ***
27  *** Table etherStatsTable
28  ***
29  **********************************************************************
30  **********************************************************************/
31     /*
32      * RMON-MIB::etherStatsTable is subid 1 of statistics.
33      * Its status is Current.
34      * OID: .1.3.6.1.2.1.16.1.1, length: 9
35      */
36 
37 
38     int             etherStatsTable_init_data(etherStatsTable_registration
39                                               * etherStatsTable_reg);
40 
41 
42     /*
43      * TODO:180:o: Review etherStatsTable cache timeout.
44      * The number of seconds before the cache times out
45      */
46 #define ETHERSTATSTABLE_CACHE_TIMEOUT   60
47 
48     void            etherStatsTable_container_init(netsnmp_container **
49                                                    container_ptr_ptr,
50                                                    netsnmp_cache * cache);
51     void            etherStatsTable_container_shutdown(netsnmp_container *
52                                                        container_ptr);
53 
54     int             etherStatsTable_container_load(netsnmp_container *
55                                                    container);
56     void            etherStatsTable_container_free(netsnmp_container *
57                                                    container);
58 
59     int             etherStatsTable_cache_load(netsnmp_container *
60                                                container);
61     void            etherStatsTable_cache_free(netsnmp_container *
62                                                container);
63 
64 #define MAX_LINE_SIZE 256
65 
66     int             etherStatsTable_row_prep(etherStatsTable_rowreq_ctx *
67                                              rowreq_ctx);
68 
69     int
70         etherStatsTable_validate_index(etherStatsTable_registration *
71                                        etherStatsTable_reg,
72                                        etherStatsTable_rowreq_ctx *
73                                        rowreq_ctx);
74     int             etherStatsIndex_check_index(etherStatsTable_rowreq_ctx * rowreq_ctx);       /* internal */
75 
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 #endif                          /* ETHERSTATSTABLE_DATA_ACCESS_H */
81