[Top][All Lists]

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

[lwip-devel] [bug #58184] Incorrect generic trap conversion to SNMP v2c

From: Harrold
Subject: [lwip-devel] [bug #58184] Incorrect generic trap conversion to SNMP v2c trap
Date: Wed, 15 Apr 2020 07:56:10 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36


                 Summary: Incorrect generic trap conversion to SNMP v2c trap
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: harrold68
            Submitted on: Wed 15 Apr 2020 11:56:08 AM UTC
                Category: apps
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head



Implementation of generic traps conversion to SNMP v2c traps in function
snmp_prepare_trap_oid() is not correctly. This function is using
specific_trap, but according the comment above function
snmp_send_trap_or_notification_or_inform_generic(), specific_trap is only used
when generic_trap == 6. That is why function snmp_send_trap_generic() passes 0
as specific_trap.

I assume function snmp_prepare_trap_oid() should use generic_trap+1 instead of
specific_trap+1 when generic_trap != 6 (SNMP_GENTRAP_ENTERPRISE_SPECIFIC).

Expected list of generic SNMP v2 traps

- coldStart
- warmStart
- linkDown
- linkUp
- authenticationFailure
- egpNeighborLoss

Currently al these traps emit


Reply to this item at:


  Message sent via Savannah

reply via email to

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