etingof / snmpfwd

SNMP Proxy Forwarder
http://snmplabs.com/snmpfwd/
BSD 2-Clause "Simplified" License
67 stars 18 forks source link

SNMP v1 Traps Missing Vars #26

Closed apsivam closed 5 years ago

apsivam commented 5 years ago

Received v1 traps are getting converted to v2c here and in next line setDefaults is getting called. setDefaults clears/empties all existing vars on the trap a new instance of trap object gets created with default vars.

Please check and confirm if this is a bug.

Configurations: nothing special. Send a v1 trap to snmpfwd-server and snmpfwd-client and any external manager only receive a trap with default vars not the ones sent.

etingof commented 5 years ago

This looks like a bug. I guess you've tried to flip these lines over already and it worked for you?

Are you planning a PR fixing this? ;)

apsivam commented 5 years ago

Created a PR with a work around that worked for me, but I'm sure there is another proper way of handling this problem :)

etingof commented 5 years ago

Thank you!