diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2018-07-03 08:44:40 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2018-07-03 08:44:40 +0000 |
commit | 8e9b3e707151d136ec95e7f1d37556e39c1e228c (patch) | |
tree | 0bf4cf04b0aa2c25155c8b45a1704512517c9127 /contrib/bsnmp/snmp_target | |
parent | 4dc1b29b7169560aa0a16bb3488dac17325767f0 (diff) | |
download | src-8e9b3e707151d136ec95e7f1d37556e39c1e228c.tar.gz src-8e9b3e707151d136ec95e7f1d37556e39c1e228c.zip |
Update bsnmp to version 1.13. This does not bring user-visible changes.
For developers gensnmptree can now generate functions for enums to convert
between enums and strings and to check the validity of a value.
The sources in FreeBSD are now in sync with the upstream which allows to
bring in IPv6 modifications.
Notes
Notes:
svn path=/head/; revision=335885
Diffstat (limited to 'contrib/bsnmp/snmp_target')
-rw-r--r-- | contrib/bsnmp/snmp_target/target_snmp.c | 6 | ||||
-rw-r--r-- | contrib/bsnmp/snmp_target/target_tree.def | 19 |
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 |