Closed apsivam closed 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? ;)
Created a PR with a work around that worked for me, but I'm sure there is another proper way of handling this problem :)
Thank you!
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.