Fix multi-line traps from NET-SNMP 5.4
Brought to you by:
alex_b
NET-SNMP 5.4.x produces trap files (example attached) that contain multi line values. The code in snmptt 1.3 did not correctly re-assemble the value. The end result was $1 contained all variables, instead of properly splitting the attr/value pairs.
The attached patch fixes the code to account for this.
An example trap that did not work
Patch to fix multi-line SNMP traps
Thanks for the patch! It has been applied to CVS and will appear in the next release of SNMPTT.