Re: commit e56699f5e2ef ("Add the ability to set the source address with "-s" for trapsess")

Bill Fenner <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAF4SogaAAiYBQMF3B3+seWWpO9CKCexSTzY_3UDD=7OVKhzd-Q@mail.gmail.com>
On Mon, Aug 26, 2019 at 9:51 PM Bart Van Assche <[email protected]> wrote:

> On 8/26/19 9:08 AM, Bill Fenner wrote:
> > Here's my proposed documentation:
> > [ ... ]
>
> Hi Bill,
>
> Does this mean that you have a patch ready for man/snmpd.conf.5.def? If
> so, how about posting that patch for review?
>
> Sure, I thought the formatted version might be easier to read.

  Bill

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
src-address-in-snmpd-conf.diff (application/octet-stream, 2.3 KB)
commit 400db759e53f45fb0ebe1e18ccbcadb63a79e3dc
Merge: 22ce0a3e6d 29792c91e2
Author: git stash <[email protected]>
Date:   Mon Aug 26 14:43:24 2019 -0700

    On minimalist-check: src-man

diff --cc man/snmpd.conf.5.def
index eaa904f4b0,eaa904f4b0..43ca58f3ce
--- a/man/snmpd.conf.5.def
+++ b/man/snmpd.conf.5.def
@@@ -851,9 -851,9 +851,9 @@@ can configure \fIsnmpd\fR to take a mor
  defines the default community string to be used when sending traps.
  Note that this directive must be used prior to any community-based
  trap destination directives that need to use it.
--.IP "trapsink [-profile p] [-name n] [-tag t] HOST [COMMUNITY [PORT]]"
--.IP "trap2sink [-profile p] [-name n] [-tag t] HOST [COMMUNITY [PORT]]"
--.IP "informsink [-profile p] [-name n] [-tag t] HOST [COMMUNITY [PORT]]"
++.IP "trapsink [-profile p] [-name n] [-tag t] [-s src] HOST [COMMUNITY [PORT]]"
++.IP "trap2sink [-profile p] [-name n] [-tag t] [-s src] HOST [COMMUNITY [PORT]]"
++.IP "informsink [-profile p] [-name n] [-tag t] [-s src] HOST [COMMUNITY [PORT]]"
  define the address of a notification receiver that should be sent
  SNMPv1 TRAPs, SNMPv2c TRAP2s, or SNMPv2 INFORM notifications respectively.
  See the section 
@@@ -880,6 -880,6 +880,16 @@@ be used for SNMP-NOTIFICATION-MIB tabl
  which notification filter profile entry will be used for filtering
  outgoing notifications. (See \fInotificationFilter\fR)
  .IP
++The optional src parameter specifies the source address that will
++be used when sending the trap packet to this sink.
++It is specified as a <transport-address>, using the same
++<transport-specifier> as the destination HOST.
++See the section 
++.B LISTENING ADDRESSES
++in the
++.I snmpd(8)
++manual page for more information about the format.
++.IP
  If several sink directives are specified, multiple
  copies of each notification (in the appropriate formats)
  will be generated.
@@@ -888,7 -888,7 +898,7 @@@
  It is \fBnot\fR normally appropriate to list two (or all three)
  sink directives with the same destination.
  .RE
--.IP "trapsess [-profile p] [-name n] [-tag t] [SNMPCMD_ARGS] HOST"
++.IP "trapsess [-profile p] [-name n] [-tag t] [-s src] [SNMPCMD_ARGS] HOST"
  provides a more generic mechanism for defining notification destinations.
  .I "SNMPCMD_ARGS"
  should be the command-line options required for an equivalent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.