Re: To understand the increase in size of buffer in agentx_parse() in net-snmp-5.8

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On 4/25/19 8:00 AM, Vijay, Anjali
wrote:

I recently started working with
net-snmp-5.8. I had a query over a change that was made to
agentx_parse() in agent/mibgroup/agentx/protocol.c. I noticed
that the buffer of  SNMP_MAX_MSG_SIZE (1472) in net-snmp-5.7.3
has been replaced with the size 65536 in net-snmp-5.8.

Â

u_char buffer[65536];

Â

I didnÂ’t find any clarification in the
ChangeLogs for this large increase of size. Can this size be
reduced? It would be of great help if anyone can clear me out
on this since my application has memory constraints.

Hi Anjali,

I will have a look and see whether it is possible to modify the
AgentX code without reducing performance and without dropping
support for large AgentX packets. BTW, the following commit
increased the buffer size:

c09140c934eb ("CHANGES: snmpd: Increase maximum AgentX packet
size to 64kB.")

Bart.

_______________________________________________
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.