[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] SNMP V3 Traps / SNMP Manager
From: |
Indan Zupancic |
Subject: |
Re: [lwip-users] SNMP V3 Traps / SNMP Manager |
Date: |
Fri, 24 Apr 2020 17:45:57 +0200 |
Hello,
MEP's SNMP Manager patch is submitted at:
https://savannah.nongnu.org/patch/index.php?9927
Main changes in existing code are to fix bad assumptions when the
code is used for both agent and manager, especially with V3. All this
also applies to V3 trap support. After this patch trap support is maybe
better implemented using snmp_manager.c's code instead of the current
trap code. The differences between the common code between agent,
manager and traps might be small enough that it is worthwhile to unify
them into a separate file used by all, which would almost automatically
bring v3 support to traps.
It is very important for us that everything should be supported at the same
time: Agent, manager and traps. Currently there is no context object passed
to all SNMP functions, that would make it simpler for common code to know
how to behave.
Best regards,
Indan Zupancic
TT Vasumweg 150 | 1033 SH Amsterdam | The Netherlands
Phone: + 31 [0]20 482 56 32 | Fax: + 31 [0]20 482 00 77 | Email:
address@hidden
-----Original Message-----
From: lwip-users <lwip-users-bounces+indan.zupancic=address@hidden> On Behalf
Of Indan Zupancic
Sent: Friday, 24 April 2020 10:38
To: 'Trampas Stern' <address@hidden>
Cc: address@hidden
Subject: Re: [lwip-users] SNMP V3 Traps
Hello Trampas,
We at MEP have implemented SNMP V1/V2c/V3 manager support (done by my colleague
Harrold).
SNMP traps and manager functionality are very similar. We initially implemented
manager support by using snmp_traps.c's code. However, because V3 support was
required and not supported for traps, we switched to snmp_msg.c as a basis
instead.
It shouldn't be that much work to adapt our manager code to also support V3
traps.
I wanted to submit patches, but haven't gotten to it yet. Currently we
duplicate code from snmp_msg.c instead of sharing it. I can imagine that it is
preferable to separate common code. However, this kind of cleanups can also be
done while adding V3 trap support.
If there is interest I'll hurry up our patch submission. We'd like to have V3
trap support as well, but haven't had the time to implement it yet.
Best regards,
Indan Zupancic
TT Vasumweg 150 | 1033 SH Amsterdam | The Netherlands
Phone: + 31 [0]20 482 56 32 | Fax: + 31 [0]20 482 00 77 | Email:
mailto:address@hidden
---------- Forwarded message ---------
From: Trampas Stern <mailto:address@hidden>
Date: Thu, Apr 23, 2020 at 10:20 PM
Subject: [lwip-users] SNMP V3 Traps
To: Mailing list for lwIP users <mailto:address@hidden>
It appears that the SNMP V3 code does not implement SNMP V3 traps has anyone
implemented V3 traps yet?
Thanks
Trampas
- Re: [lwip-users] SNMP V3 Traps / SNMP Manager,
Indan Zupancic <=