summaryrefslogtreecommitdiff
path: root/contrib/bsnmp/snmp_target
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2018-07-03 08:44:40 +0000
committerHartmut Brandt <harti@FreeBSD.org>2018-07-03 08:44:40 +0000
commit8e9b3e707151d136ec95e7f1d37556e39c1e228c (patch)
tree0bf4cf04b0aa2c25155c8b45a1704512517c9127 /contrib/bsnmp/snmp_target
parent4dc1b29b7169560aa0a16bb3488dac17325767f0 (diff)
downloadsrc-test2-8e9b3e707151d136ec95e7f1d37556e39c1e228c.tar.gz
src-test2-8e9b3e707151d136ec95e7f1d37556e39c1e228c.zip
Notes
Diffstat (limited to 'contrib/bsnmp/snmp_target')
-rw-r--r--contrib/bsnmp/snmp_target/target_snmp.c6
-rw-r--r--contrib/bsnmp/snmp_target/target_tree.def19
2 files changed, 5 insertions, 20 deletions
diff --git a/contrib/bsnmp/snmp_target/target_snmp.c b/contrib/bsnmp/snmp_target/target_snmp.c
index ed8df74fbfdb..7ea47db0491a 100644
--- a/contrib/bsnmp/snmp_target/target_snmp.c
+++ b/contrib/bsnmp/snmp_target/target_snmp.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2010 The FreeBSD Foundation
+ * Copyright (c) 2010,2018 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by Shteryana Sotirova Shopova under
@@ -43,6 +43,7 @@
#include "snmp.h"
#include "snmpmod.h"
+#define SNMPTREE_TYPES
#include "target_tree.h"
#include "target_oid.h"
@@ -826,9 +827,10 @@ target_dump(void)
/* XXX: dump the module stats & list of mgmt targets */
}
-const char target_comment[] = \
+static const char target_comment[] = \
"This module implements SNMP Management Target MIB Module defined in RFC 3413.";
+extern const struct snmp_module config;
const struct snmp_module config = {
.comment = target_comment,
.init = target_init,
diff --git a/contrib/bsnmp/snmp_target/target_tree.def b/contrib/bsnmp/snmp_target/target_tree.def
index 990bfac0b06e..14424b00bdc6 100644
--- a/contrib/bsnmp/snmp_target/target_tree.def
+++ b/contrib/bsnmp/snmp_target/target_tree.def
@@ -29,24 +29,7 @@
# $FreeBSD$
#
-#include "tc.def"
-
-typedef RowStatus ENUM (
- 1 active
- 2 notInService
- 3 notReady
- 4 createAndGo
- 5 createAndWait
- 6 destroy
-)
-
-typedef StorageType ENUM (
- 1 other
- 2 volatile
- 3 nonVolatile
- 4 permanent
- 5 readOnly
-)
+include "tc.def"
(1 internet
(6 snmpV2