patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9927, SNMP Manager support

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9927: SNMP Manager support

Submitted by:  Indan Zupancic <indan>
Submitted on:  Fri 24 Apr 2020 03:27:39 PM UTC  
 
Category:  apps Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Fri 01 May 2020 08:29:56 AM UTC, comment #1: 

We also added multiple netdev support to SNMP, but I didn't want to lump those changes together with SNMP manager support. However, it seems I forgot to remove some parts of it in snmp_manager.c: Please ignore all the "eth_interface" code.

Indan Zupancic <indan>
Fri 24 Apr 2020 03:27:39 PM UTC, original submission:  

This patch adds SNMP v1/v2c/v3 manager support to lwIP.

Manager support and agent support can both be enabled at the same time.

This implementation is tested for v1, v2c and v3. Agent support is also fully tested. Harrold's SNMP bugfix patches are required for proper operation.

No sample code is added to either snmp_netconn.c, nor snmp_raw.c. This is because we want both agent and manager support handled in the same thread, but not in lwIP's tcpip thread. We define SNMP_NETCONN to enable thread-safety, but in our own thread code we use the raw API with either LOCK_TCPIP_CORE() or via tcpip_callback(), depending on LWIP_TCPIP_CORE_LOCKING.

(There are some tiny unrelated changes in snmp_traps.c which we need for a platform specific custom modification, because we use multiple interfaces and can't use snmp_get_local_ip_for_dst. We would appreciate it if those were merged too, to reduce our diff with upstream.)

Indan Zupancic <indan>

 

Attached Files
file #48925:  mep_lwip_snmp_manager.patch added by indan (57KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by indan (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-24 indan Carbon-CopyRemoved -email is unavailable- => -
    2020-04-24 indan Attached File- => Added mep_lwip_snmp_manager.patch, #48925
        Carbon-Copy- => Added indan.zupancic@mep-info.com

    Back to the top


    Powered by Savane 3.6