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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to