Re: SNMP

Juergen Schoenwaelder (schoenw@sol)
Wed, 19 Jan 94 14:06:39 +0100

Hi!

Allan> Hi again,

Allan> I just found and fixed the bug after I sent the last mail:
Allan> Here is the fix, if anyone needs it:

Allan> in snmp.h, change 16 to something larger (say 255) for the line:

Allan> #define PKT_SZERORLST 16 <== should be larger

Just a small note. RFC 1157 says:

RFC 1157> An implementation of this protocol need not
RFC 1157> accept messages whose length exceeds 484 octets.

You may run into problems if you increase PKT_SZERORLST too much.
Hence it would be better to dynamically adjust the number of accepted
oids when encoding an SNMP packet.

Juergen