[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] SNMPv2 failed SetRequest response

From: Marco Veeneman
Subject: [lwip-users] SNMPv2 failed SetRequest response
Date: Thu, 8 Sep 2016 14:17:46 +0000


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.

It would be better if the SNMP agent would respond with a message with error-status set to some value. What would be the best solution here?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]