[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49136] No SNMPv2 SetRequest response when OID does no
From: |
Dirk Ziegelmeier |
Subject: |
[lwip-devel] [bug #49136] No SNMPv2 SetRequest response when OID does not exist |
Date: |
Tue, 20 Sep 2016 12:05:41 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0 |
URL:
<http://savannah.nongnu.org/bugs/?49136>
Summary: No SNMPv2 SetRequest response when OID does not
exist
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: dziegel
Submitted on: Tue 20 Sep 2016 12:05:38 PM GMT
Category: Contrib
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: Confirmed
Privacy: Public
Assigned to: dziegel
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.0.0
lwIP version: git head
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49136>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49136] No SNMPv2 SetRequest response when OID does not exist,
Dirk Ziegelmeier <=