I am trying to implement SNMP agent on a device using LWIP Library in Xilinx SDK.
I successfully implemented the agent and got the agent running over my device to respond to commands (snmpget, snmpset,snmpwalk).
But if a OID has to return an octet string of length > 255, the agent behaves suspiciously. when i tried to pass the octet string of length >255, i recieve no data on that oid and agent gets disconnected after that and will not repsond to any furthur commands.
snmp octet strings of length <255 are correctly received with no problem (no issues).. I wonder does LWIP SNMP Agent has limitation on the size of the octet string..??
Objects defined as octet strings are typically limited to 255 bytes, either directly,
or indirectly by using something like DisplayString
which is in turn limited to 255 bytes.
Take a look at RFC 2578 and 2579. You can define an object with a larger size, but bear in mind that SNMP isn't meant to transfer large sets of data.