about the packet format of SNMP Trap
hello all,
i would like to receive SNMP Traps, but i couldn't find the precise definition of Trap packet, as the follow:
﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣
0000 30 81 E1 02 01 00 04 06 70 75 62 6C 69 63 A4 81 0.......public..
0010 D3 06 0B 2B 06 01 04 01 82 57 02 05 01 01 40 04 ...+.....W....@.
﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣﹣
the above data are copied from other snmp trap application, it's not the same as what i know, for example, the second byte should be the the whole length of the packet, but 0x81 is not the length, the third one is (0xE1), the same confusion, what does 0x81 after the 0xA4 mean? and i tried to produce a longer trap packet, the 0x81 was replaced by 0x82, could someone help me please