snmpv3 send response: too long

duocell <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAAckFwB+KVNeB3A7TVY4a0tNGtA8L39cCGT6MThir04JWNPG2A@mail.gmail.com>
Hi,

Need some help to debug the "send response: too long" error in
net-snmp-5.7.3

I keeps hitting the following error.

"length of packet 1513 exceeds session maximum 1472"

snmplib/snmp_api.c
   if (pdu->version == SNMP_VERSION_3 && session->sndMsgMaxSize != 0 &&
length > session->sndMsgMaxSize) {
          DEBUGMSGTL(("sess_async_send",
                      "length of packet (%lu) exceeds session maximum
(%lu)\n",
                      (unsigned long)length, (unsigned
long)session->sndMsgMaxSize));
          session->s_snmp_errno = SNMPERR_TOO_LONG;
          SNMP_FREE(pktbuf);
          return 0;
      }


How to limit the response pkt size? Looks like there is already MACRO
#define SNMP_MAX_MSG_SIZE          1472
Which doesn't seem to be applied in my case.

Would appreciate your help.

Thanks,
Haiyang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
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.