aboutsummaryrefslogtreecommitdiff
path: root/contrib/bsnmp/snmpd
diff options
context:
space:
mode:
authorHartmut Brandt <harti@FreeBSD.org>2006-02-27 16:16:18 +0000
committerHartmut Brandt <harti@FreeBSD.org>2006-02-27 16:16:18 +0000
commit568d256aa128b2d627b0cbbc903178485b0ee63c (patch)
tree8156bfffe30f91fdf58a22bd39fcc0704622e399 /contrib/bsnmp/snmpd
parent5943a2a3e97f67444ffbdc766c0316bf94370a28 (diff)
parent748b5b1ebd1b2c58c21a90cdc5abdd462eeb22b3 (diff)
downloadsrc-568d256aa128b2d627b0cbbc903178485b0ee63c.tar.gz
src-568d256aa128b2d627b0cbbc903178485b0ee63c.zip
This commit was generated by cvs2svn to compensate for changes in r156066,
which included commits to RCS files with non-trunk default branches.
Notes
Notes: svn path=/head/; revision=156067
Diffstat (limited to 'contrib/bsnmp/snmpd')
-rw-r--r--contrib/bsnmp/snmpd/bsnmpd.115
-rw-r--r--contrib/bsnmp/snmpd/config.c2
-rw-r--r--contrib/bsnmp/snmpd/export.c2
-rw-r--r--contrib/bsnmp/snmpd/main.c11
-rw-r--r--contrib/bsnmp/snmpd/snmpd.config2
-rw-r--r--contrib/bsnmp/snmpd/snmpmod.39
-rw-r--r--contrib/bsnmp/snmpd/snmpmod.h2
7 files changed, 26 insertions, 17 deletions
diff --git a/contrib/bsnmp/snmpd/bsnmpd.1 b/contrib/bsnmp/snmpd/bsnmpd.1
index 9da7456e894d..18c46d2af67c 100644
--- a/contrib/bsnmp/snmpd/bsnmpd.1
+++ b/contrib/bsnmp/snmpd/bsnmpd.1
@@ -29,10 +29,10 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Begemot: bsnmp/snmpd/bsnmpd.1,v 1.9 2005/10/04 08:46:54 brandt_h Exp $
+.\" $Begemot: bsnmp/snmpd/bsnmpd.1,v 1.12 2006/02/27 09:50:03 brandt_h Exp $
.\"
-.Dd October 4, 2005
-.Dt SNMPD 1
+.Dd February 27, 2006
+.Dt BSNMPD 1
.Os
.Sh NAME
.Nm bsnmpd
@@ -49,7 +49,7 @@
.Sh DESCRIPTION
The
.Nm
-daemon servers the internet SNMP (Simple Network Management Protocol).
+daemon server the internet SNMP (Simple Network Management Protocol).
It is intended to serve only the absolute basic MIBs and implement all other
MIBs through loadable modules.
In this way the
@@ -258,9 +258,14 @@ This is the default search path for system include files.
.It Pa @MIBSPATH@BEGEMOT-MIB.txt
.It Pa @MIBSPATH@BEGEMOT-SNMPD.txt
The definitions for the MIBs implemented in the daemon.
+.It Pa /etc/hosts.allow, /etc/hosts.deny
+Access controls that should be enforced by TCP wrappers should be defined here.
+Further details are described in
+.Xr hosts_access 5 .
.El
.Sh SEE ALSO
-.Xr gensnmptree 1
+.Xr gensnmptree 1 ,
+.Xr hosts_access 5
.Sh STANDARDS
The
.Nm
diff --git a/contrib/bsnmp/snmpd/config.c b/contrib/bsnmp/snmpd/config.c
index 0701c41280a4..6480d204ded6 100644
--- a/contrib/bsnmp/snmpd/config.c
+++ b/contrib/bsnmp/snmpd/config.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Begemot: bsnmp/snmpd/config.c,v 1.24 2005/10/04 11:21:37 brandt_h Exp $
+ * $Begemot: bsnmp/snmpd/config.c,v 1.25 2006/02/14 09:04:20 brandt_h Exp $
*
* Parse configuration file.
*/
diff --git a/contrib/bsnmp/snmpd/export.c b/contrib/bsnmp/snmpd/export.c
index 52205e7f11cb..94983611e4cc 100644
--- a/contrib/bsnmp/snmpd/export.c
+++ b/contrib/bsnmp/snmpd/export.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Begemot: bsnmp/snmpd/export.c,v 1.7 2004/08/06 08:47:11 brandt Exp $
+ * $Begemot: bsnmp/snmpd/export.c,v 1.8 2006/02/14 09:04:20 brandt_h Exp $
*
* Support functions for modules.
*/
diff --git a/contrib/bsnmp/snmpd/main.c b/contrib/bsnmp/snmpd/main.c
index 32ccc45d50cf..b183d7f56b1a 100644
--- a/contrib/bsnmp/snmpd/main.c
+++ b/contrib/bsnmp/snmpd/main.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Begemot: bsnmp/snmpd/main.c,v 1.97 2005/10/04 14:32:45 brandt_h Exp $
+ * $Begemot: bsnmp/snmpd/main.c,v 1.100 2006/02/14 09:04:20 brandt_h Exp $
*
* SNMPd main stuff.
*/
@@ -52,15 +52,12 @@
#include <tcpd.h>
#endif
+#include "support.h"
#include "snmpmod.h"
#include "snmpd.h"
#include "tree.h"
#include "oid.h"
-#if !defined(INT32_MAX)
-#define INT32_MAX (0x7fffffff)
-#endif
-
#define PATH_PID "/var/run/%s.pid"
#define PATH_CONFIG "/etc/%s.config"
@@ -1387,8 +1384,8 @@ main(int argc, char *argv[])
syslog(LOG_ERR,
"no value for 'trace'");
else
- snmp_trace =
- strtoul(value, NULL, 0);
+ snmp_trace = strtoul(value,
+ NULL, 0);
break;
case -1:
diff --git a/contrib/bsnmp/snmpd/snmpd.config b/contrib/bsnmp/snmpd/snmpd.config
index 4b018e82285e..23db74cd1aac 100644
--- a/contrib/bsnmp/snmpd/snmpd.config
+++ b/contrib/bsnmp/snmpd/snmpd.config
@@ -26,7 +26,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Begemot: bsnmp/snmpd/snmpd.config,v 1.15 2005/02/25 11:50:43 brandt_h Exp $
+# $Begemot: bsnmp/snmpd/snmpd.config,v 1.16 2006/02/14 09:04:20 brandt_h Exp $
#
# Example configuration file.
#
diff --git a/contrib/bsnmp/snmpd/snmpmod.3 b/contrib/bsnmp/snmpd/snmpmod.3
index ed2717a1bf13..3ca067add0e6 100644
--- a/contrib/bsnmp/snmpd/snmpmod.3
+++ b/contrib/bsnmp/snmpd/snmpmod.3
@@ -31,7 +31,7 @@
.\"
.\" $Begemot: bsnmp/snmpd/snmpmod.3,v 1.14 2005/10/04 13:30:35 brandt_h Exp $
.\"
-.Dd October 4, 2005
+.Dd February 27, 2006
.Dt SNMPMOD 3
.Os
.Sh NAME
@@ -85,6 +85,7 @@
.Nm string_commit ,
.Nm string_rollback ,
.Nm string_get ,
+.Nm string_get_max ,
.Nm string_free ,
.Nm ip_save ,
.Nm ip_rollback ,
@@ -197,6 +198,8 @@ Begemot SNMP library
.Fn string_rollback "struct snmp_context *ctx" "u_char **strp"
.Ft int
.Fn string_get "struct snmp_value *val" "const u_char *str" "ssize_t len"
+.Ft int
+.Fn string_get_max "struct snmp_value *val" "const u_char *str" "ssize_t len" "size_t maxlen"
.Ft void
.Fn string_free "struct snmp_context *ctx"
.Ft int
@@ -771,6 +774,10 @@ simply frees the saved old value in the scratch area.
frees the new value, and puts back the old one.
.It Fn string_get
is used for GET or GETNEXT.
+The function
+.It Fn string_get_max
+can be used instead of
+.Nf stringto ensure that the returned string has a certain maximum length.
If
.Fa len
is -1, the length is computed via
diff --git a/contrib/bsnmp/snmpd/snmpmod.h b/contrib/bsnmp/snmpd/snmpmod.h
index 18457bfc5b1b..5eba370704b6 100644
--- a/contrib/bsnmp/snmpd/snmpmod.h
+++ b/contrib/bsnmp/snmpd/snmpmod.h
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Begemot: bsnmp/snmpd/snmpmod.h,v 1.31 2005/10/04 13:30:36 brandt_h Exp $
+ * $Begemot: bsnmp/snmpd/snmpmod.h,v 1.32 2006/02/14 09:04:20 brandt_h Exp $
*
* SNMP daemon data and functions exported to modules.
*/