Geert De Peuter writes:
> If (server)
>       DEFAULT_BUFFER = SNMP_MAX_PDU_SIZE * 2;
> else
>       DEFAULT_BUFFER = SNMP_MAX_PDU_SIZE;

Hm... when I try to find a reasonable buffer size, I don't think I
would care much about SNMP_MAX_PDU_SIZE, but rather about the EXPECTED
traffic that I want the OS to buffer in times of congestion,
i.e. about what's a reasonable number of trap (or request) PDUs to
buffer, and what is the TYPICAL size.

As long as SNMP_MAX_PDU_SIZE is 65536, your formulas happen to yield
reasonable results... but I would probably use something more along
the lines of

    If (server)
        DEFAULT_BUFFER = SNMP_TYPICAL_PDU_SIZE * 200;

or, if you want to make sure we can receive maximally large PDUs,

    If (server) {
        DEFAULT_BUFFER = SNMP_TYPICAL_PDU_SIZE * 200;
            if (SNMP_MAX_PDU_SIZE > DEFAULT_BUFFER)
              DEFAULT_BUFFER = SNMP_MAX_PDU_SIZE;
-- 
Simon.



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to