When moving the traphandler code to snpme I overlooked some text in the
"trap handle" section. This diff tries to rectify that. While here, try
to be a little more clear in the "listen on" segment as well.

OK?

martijn@

Index: snmpd.conf.5
===================================================================
RCS file: /cvs/src/usr.sbin/snmpd/snmpd.conf.5,v
retrieving revision 1.46
diff -u -p -r1.46 snmpd.conf.5
--- snmpd.conf.5        22 Jan 2021 06:33:26 -0000      1.46
+++ snmpd.conf.5        3 Mar 2021 16:02:16 -0000
@@ -116,9 +116,12 @@ The default protocol is
 .Ic udp.
 The default
 .Ar port
-is 161, unless the only listen flags contains
+is 161, unless
 .Ic notify
-which sets it to 162.
+is the only listen flags
+which sets the
+.Ar port
+to 162.
 If no flags are specified it defaults to
 .Dq Ic read Ic write ,
 or
@@ -126,6 +129,11 @@ or
 when
 .Ar port
 is 162.
+Having
+.Ic notify
+set requires at least one
+.Ic trap handle
+statement.
 .It Ic read-only community Ar string
 Specify the name of the read-only community.
 The default value is
@@ -217,9 +225,12 @@ the resolved hostname of the host sendin
 the IP address of the host sending the trap,
 and any variable bindings contained in the trap
 (the OID followed by the value, separated by a single space).
-Traps will be accepted on all
+This option requires at least one
 .Ic listen on
-UDP addresses.
+statement with a
+.Ic notify
+flag set.
+Traps over SNMPv3 are currently unsupported.
 .It Xo
 .Ic trap receiver Ar string
 .Op Ic oid Ar oid-string


Reply via email to