buglwIP - A Lightweight TCP/IP stack - Bugs: bug #58184, Incorrect generic trap conversion...


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

bug #58184: Incorrect generic trap conversion to SNMP v2c trap

Submitter:  Harrold <harrold68>
Submitted:  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 Planned Release:  None
lwIP version:  git head

Wed 15 Apr 2020 11:56:08 AM UTC, original submission:  

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

Harrold <harrold68>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code