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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Ondrej Lufinka
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/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel