Skip to content

Commit

Permalink
CHANGES: libsnmp: Increase the maximum SNMPv3 session receive size fr…
Browse files Browse the repository at this point in the history
…om 1472 to 2**31-1 bytes

For the UDP transport this patch increases the maximum message size from 1472
to about 64 KB.

This patch adjusts a limit that was introduced by commit 6e83b3c
("respect msgMaxSize in received v3 PDUs (in the weak sense that if the
serialized response PDU is more than it, we don't send it)") # v5.7.
  • Loading branch information
bvanassche committed May 17, 2019
1 parent d1f6c87 commit 78bf006
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion snmplib/snmp_api.c
Expand Up @@ -769,7 +769,7 @@ snmp_sess_init(netsnmp_session * session)
session->retries = SNMP_DEFAULT_RETRIES;
session->version = SNMP_DEFAULT_VERSION;
session->securityModel = SNMP_DEFAULT_SECMODEL;
session->rcvMsgMaxSize = SNMP_MAX_MSG_SIZE;
session->rcvMsgMaxSize = netsnmp_max_send_msg_size();
session->sndMsgMaxSize = netsnmp_max_send_msg_size();
session->flags |= SNMP_FLAGS_DONT_PROBE;
}
Expand Down
3 changes: 0 additions & 3 deletions testing/fulltests/default/T0221snmpbulkget_large_simple
Expand Up @@ -5,9 +5,6 @@
HEADER large SNMPv3 bulkget

SKIPIFNOT USING_MIBII_SYSTEM_MIB_MODULE
# To do: figure out why this test fails as follows on BSD systems:
# Timeout: No Response from udp:127.0.0.1:8767
[ $(uname) = Linux ] || SKIP "Skipping this test on non-Linux systems"

#
# Begin test
Expand Down

0 comments on commit 78bf006

Please sign in to comment.