buglwIP - A Lightweight TCP/IP stack - Bugs: bug #49136, No SNMPv2 SetRequest response when...

 
 

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

bug #49136: No SNMPv2 SetRequest response when OID does not exist

Submitted by:  Dirk Ziegelmeier <dziegel>
Submitted on:  Tue 20 Sep 2016 12:05:38 PM UTC  
 
Category: ContribSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Dirk Ziegelmeier <dziegel>
Open/Closed: ClosedPlanned Release: 2.0.0
lwIP version: git head

Tue 20 Sep 2016 12:07:27 PM UTC, comment #1:

Thanks for reporting, Marco.

Dirk Ziegelmeier <dziegel>
Project MemberIn charge of this item.
Tue 20 Sep 2016 12:05:38 PM UTC, original submission:

Reported by Marco Veeneman:

I'm facing a problem with SNMP again and I would like to hear your thoughts about it.

In <sometable>_get_instance, if no valid instance oid for a row is found, it returns SNMP_ERR_NOSUCHINSTANCE.

If a user requests to set an invalid table oid using SNMPv1, the SNMP agent responds with 'error-status: noSuchName (2)'.
This is OK.

If a user requests to set an invalid table oid using SNMPv2, the SNMP agent doesn't respond at all. It just drops the packet.
This happens because of the following code in snmp_complete_outbound_frame() (at line 1366 in snmp_msg.c):
if (request->error_status >= SNMP_VARBIND_EXCEPTION_OFFSET) {
return ERR_ARG;
}
which stops further processing of the request.

Dirk Ziegelmeier <dziegel>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dziegel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 20 Sep 2016 12:07:27 PM UTCdziegelStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1