lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] SNMPv3 TRAPS


From: Indan Zupancic
Subject: Re: [lwip-users] SNMPv3 TRAPS
Date: Sun, 04 Dec 2022 13:19:18 +0100
User-agent: Roundcube Webmail/1.3.16

Hello Luca,

On 2022-12-02 18:38, Luca Ussoli wrote:
Using the master branch I managed to get the SNMPv3 agent running. However, TRAPS are managed up to the v2c version. I'm currently trying to implement
the v3 version as well, but without success so far.

Has anyone successfully implemented them? Or is trying so we could share our ideas?

Sending traps is very similar to sending SNMP management messages. Some years ago I had a quick stab at implementing v3 traps on top of Harrold's SNMP manager code,
but due to lack of time and customer need I never finished it.

The attached patch comes on top of https://savannah.nongnu.org/patch/?9927 and Harrold's other SNMP patches, see https://savannah.nongnu.org/users/harrold68, and perhaps some other changes we did since then internally. All this is based on an internal lwip fork off commit 0192fe77, but updating it to master should be easy.

To send a v3 trap call snmp_mngr_send() with set = 2, and you need to implement snmpv3_get_trap_auth(). The traps v3 patch is fully untested, but should be almost there. The manager code we have running in production for a couple of years now, though I'm not sure if all bugfixes have been sent as patches yet.

If you do get v3 traps working, please post a patch and share it with this mailinglist. Perhaps then there is a chance that the SNMP manager patch will
be finally upstreamed as well.

Greetings,

Indan

Attachment: lwip_SNMPv3_traps.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]