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 5/13/19 12:10 PM, Vijay, Anjali wrote:
> Thanks for the help. Meanwhile, I had changed the buffer size back to 
> 1472 and it seems to be working fine like the previous version, net-snmp 
> 5.7.3. Do you think this can cause any serious impact?

Hi Anjali,

I think that approach is risky. It's easy for an SNMP manager to send an 
snmp get, getnext or getbulk request with multiple OIDs. Even if the 
request fits in a 1472 byte network packet, the response may exceed that 
packet size. Unless if you know from beforehand what kind of requests 
the SNMP manager(s) will send and if you know from beforehand what the 
maximum string length will be, I think it's safe to use a larger buffer 
size.

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