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

Submitter:  Dirk Ziegelmeier <dziegel>
Submitted:  Tue 20 Sep 2016 12:05:38 PM UTC
   
 
Category:  Contrib Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  dziegel
Open/Closed:  Closed Planned 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>
Group administrator
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>
Group administrator

 

(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 dziegel (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-20 dziegel StatusConfirmed Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code