Re: 5.8 testing status

Robert Story <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On Thu, 26 Apr 2018 22:07:27 -0400 Bill wrote:
BF> >>> (The context is that the library now tries to suppress
BF> >>> converting traps from v1 to v2 or vice versa if there is no
BF> >>> trap sink of the right type, but, it does not know how to
BF> >>> treat agentx sessions so doesn't count them - so if there's
BF> >>> only an agentx session open it may not send *any* traps
BF> >>> since it "knows" there are no v1 or v2 trap sessions open) 

Drat. I should have added a log message when neither matched.

BF> It's plausible that a workaround as simple as
BF> 
BF> +    /*
BF> +     * We lie about being SNMPv3, because ...
BF> +     */
BF>      if (add_trap_session(main_session, AGENTX_MSG_NOTIFY, 1,
BF> -                         AGENTX_VERSION_1)) {
BF> +                         SNMP_VERSION_3)) {
BF> 
BF> would work.  (I picked V3 because you can't disable it, unlike
BF> v2c.)  I also didn't feel like writing the rest of the
BF> comment :-)

Hmm.. I'm not a fan of lying if it's avoidable... The fix should be
to recognize the agentx sessions properly...

Robert

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
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.