Before you go looking for a method maybe check if SNMP is intended to do what you want it to? SNMP means Simple Network Management Protocol. As far as I know a SNMP packet contains a payload only existing of one or more OIDs, so adding anything else may (or may not) confuse software parsing SNMP traps. RFC 1157 says "An implementation of this protocol need not accept messages whose length exceeds 484 octets" and since UDP packet max payload is 65535 bytes anyway, whatever gets added in terms of payload is limited anyway.
|