Hi Mario,
As far as I know, the current stable version of lwIP does only support SNMPv1 traps. I'm now using the latest lwIP git checkout, which does have support for SNMP v2c traps.
As far as I can see, there is no support for SNMPv3 traps yet.
If you build lwIP for SNMPv3, the older SNMP version are enabled by default. I was also a little bit confused about this, because if you support v3, you probably don't want older versions to be enabled.
Of course you can still disable them by calling the functions snmp_v1_enable(0) and snmp_v2c_enable(0).
Using SNMPv3, I had a small issue with SNMP SET. I created a quick fix to solve it, but I have to dig a little bit deeper into it to find out whether this is indeed the correct solution.
I attach the patch. It contains a diff with the current version of snmp_msg.c in Git, but it will not be difficult to use it for the current stable version also. At least you can see what I changed.
Regards,
Harrold