Debian Codegraph @

agent/mibgroup/if-mib/ifTable/ifTable_data_access.h

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * version : 1.17 $ of : mfd-data-access.m2c,v $
4 *
5 * $Id$
6 */
7 #ifndef IFTABLE_DATA_ACCESS_H
8 #define IFTABLE_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 ifTable
28 ***
29 **********************************************************************
30 **********************************************************************/
31 /*
32 * IF-MIB::ifTable is subid 2 of interfaces.
33 * Its status is Current.
34 * OID: .1.3.6.1.2.1.2.2, length: 8
35 */
36
37
38 int ifTable_init_data(ifTable_registration * ifTable_reg);
39
40
41 /*
42 * TODO:180:o: Review ifTable cache timeout.
43 * The number of seconds before the cache times out
44 */
45 /*
46 * A 10 Mbps stream can wrap if*Octets in ~57 minutes.
47 * At 100 Mbps it is ~5 minutes, and at 1 Gbps, ~34 seconds.
48 */
49 #define IFTABLE_CACHE_TIMEOUT 3
50
51 #define IFTABLE_REMOVE_MISSING_AFTER (5 * 60) /* seconds */
52
53 void ifTable_container_init(netsnmp_container
54 **container_ptr_ptr,
55 netsnmp_cache * cache);
56 void ifTable_container_shutdown(netsnmp_container
57 *container_ptr);
58
59 int ifTable_container_load(netsnmp_container *container);
60 void ifTable_container_free(netsnmp_container *container);
61
62 int ifTable_cache_load(netsnmp_container *container);
63 void ifTable_cache_free(netsnmp_container *container);
64
65 int ifTable_row_prep(ifTable_rowreq_ctx * rowreq_ctx);
66
67
68
69
70
71 #ifdef __cplusplus
72 }
73 #endif
74 #endif /* IFTABLE_DATA_ACCESS_H */