diff options
author | Hideki Yamane <henrich@debian.org> | 2014-03-30 19:38:48 +0900 |
---|---|---|
committer | Hideki Yamane <henrich@debian.org> | 2014-03-30 19:38:48 +0900 |
commit | 7769a9595c3da9a35f31b42451b1f6c3ed4004fa (patch) | |
tree | 009bf8fd68af6bb1129e07dd8c1ed205010d81f8 /agent/mibgroup/target/target_counters_5_5.c | |
parent | 2e7891b0311204e0ecd5dc4a4334df01f3a6a1b4 (diff) | |
download | pkg-net-snmp-7769a9595c3da9a35f31b42451b1f6c3ed4004fa.tar.gz |
Imported Upstream version 5.7.2~dfsg
Diffstat (limited to 'agent/mibgroup/target/target_counters_5_5.c')
-rw-r--r-- | agent/mibgroup/target/target_counters_5_5.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/agent/mibgroup/target/target_counters_5_5.c b/agent/mibgroup/target/target_counters_5_5.c new file mode 100644 index 0000000..a32207b --- /dev/null +++ b/agent/mibgroup/target/target_counters_5_5.c @@ -0,0 +1,31 @@ +#include <net-snmp/net-snmp-config.h> + +#include <net-snmp/net-snmp-features.h> + +#if HAVE_STRING_H +#include <string.h> +#else +#include <strings.h> +#endif + +#include <net-snmp/net-snmp-includes.h> +#include <net-snmp/agent/net-snmp-agent-includes.h> + +#include "target_counters_5_5.h" + +#include <net-snmp/agent/snmp_get_statistic.h> + +netsnmp_feature_require(helper_statistics) + +void +init_target_counters_5_5(void) +{ + oid target_oid[] = { 1, 3, 6, 1, 6, 3, 12, 1 }; + + DEBUGMSGTL(("target_counters", "initializing\n")); + + NETSNMP_REGISTER_STATISTIC_HANDLER( + netsnmp_create_handler_registration( + "target_counters", NULL, target_oid, OID_LENGTH(target_oid), + HANDLER_CAN_RONLY), 4, TARGET); +} |