Hello Marco,

I cannot check this at the moment, and the guy who actually wrote the code
at my company is on vacation for more than one week...


Ciao
Dirk

--
Dirk Ziegelmeier * [email protected] * http://www.ziegelmeier.net

On Thu, Sep 8, 2016 at 4:17 PM, Marco Veeneman <[email protected]>
wrote:

> Hi,
>
>
> 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?
>
>
> Marco
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to