lwip-devel
[Top][All Lists]
Advanced

[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

URL:
  <https://savannah.nongnu.org/bugs/?58184>

                 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

    _______________________________________________________

Details:

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 1.3.6.1.6.3.1.1.5.1
- warmStart 1.3.6.1.6.3.1.1.5.2
- linkDown 1.3.6.1.6.3.1.1.5.3
- linkUp 1.3.6.1.6.3.1.1.5.4
- authenticationFailure 1.3.6.1.6.3.1.1.5.5
- egpNeighborLoss 1.3.6.1.6.3.1.1.5.6

Currently al these traps emit 1.3.6.1.6.3.1.1.5.1




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58184>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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