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

Submitted by:  Harrold <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 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 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

Harrold <harrold68>

 

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)
  •  

    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.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.6