diff options
author | Kozlov Dmitry <dima@server> | 2011-08-19 14:04:55 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-19 14:04:55 +0400 |
commit | 5ef49162ea9763ca9878c22e3736766d8f1db014 (patch) | |
tree | f58da9adfc87ece6c608265fc694e66bd5db162c /accel-pppd/extra/net-snmp/sessionTable_data_access.h | |
parent | fd52e4578dcc7de2301480fece9395563d643045 (diff) | |
download | accel-ppp-xebd-5ef49162ea9763ca9878c22e3736766d8f1db014.tar.gz accel-ppp-xebd-5ef49162ea9763ca9878c22e3736766d8f1db014.zip |
snmp support
Diffstat (limited to 'accel-pppd/extra/net-snmp/sessionTable_data_access.h')
-rw-r--r-- | accel-pppd/extra/net-snmp/sessionTable_data_access.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/accel-pppd/extra/net-snmp/sessionTable_data_access.h b/accel-pppd/extra/net-snmp/sessionTable_data_access.h new file mode 100644 index 0000000..1c420ce --- /dev/null +++ b/accel-pppd/extra/net-snmp/sessionTable_data_access.h @@ -0,0 +1,76 @@ +/* + * Note: this file originally auto-generated by mib2c using + * version : 14170 $ of $ + * + * $Id:$ + */ +#ifndef SESSIONTABLE_DATA_ACCESS_H +#define SESSIONTABLE_DATA_ACCESS_H + +#ifdef __cplusplus +extern "C" { +#endif + + +/* ********************************************************************* + * function declarations + */ + +/* ********************************************************************* + * Table declarations + */ +/********************************************************************** + ********************************************************************** + *** + *** Table sessionTable + *** + ********************************************************************** + **********************************************************************/ +/* + * ACCEL-PPP-MIB::sessionTable is subid 1 of accelPPPSessions. + * Its status is Current. + * OID: .1.3.6.1.4.1.8072.100.2.1, length: 10 +*/ + + + int sessionTable_init_data(sessionTable_registration * sessionTable_reg); + + + /* + * TODO:180:o: Review sessionTable cache timeout. + * The number of seconds before the cache times out + */ +#define SESSIONTABLE_CACHE_TIMEOUT 60 + +void sessionTable_container_init(netsnmp_container **container_ptr_ptr, + netsnmp_cache *cache); +void sessionTable_container_shutdown(netsnmp_container *container_ptr); + +int sessionTable_container_load(netsnmp_container *container); +void sessionTable_container_free(netsnmp_container *container); + +int sessionTable_cache_load(netsnmp_container *container); +void sessionTable_cache_free(netsnmp_container *container); + + /* + *************************************************** + *** START EXAMPLE CODE *** + ***---------------------------------------------***/ +/* ********************************************************************* + * Since we have no idea how you really access your data, we'll go with + * a worst case example: a flat text file. + */ +#define MAX_LINE_SIZE 256 + /* + ***---------------------------------------------*** + *** END EXAMPLE CODE *** + ***************************************************/ + int sessionTable_row_prep( sessionTable_rowreq_ctx *rowreq_ctx); + + + +#ifdef __cplusplus +} +#endif + +#endif /* SESSIONTABLE_DATA_ACCESS_H */ |