[erlang-patches] SNMP: fix wrong error code for invalid get requests

Stefan Zegenhagen <>
Mon Sep 3 16:29:41 CEST 2012


Dear all,

when an SNMP get request references an existing scalar variable without
instance OID (e.g. sysName instead of sysName.0), the erlang SNMP agent
returns a noSuchObject error instead of the correct noSuchInstance
error. Some SNMP test suites flag this as error.

The patch attached to this e-mail solves the problem by letting the OID
lookup routine return the correct noSuchInstance error.

Kind regards,

-- 
Dr. Stefan Zegenhagen

arcutronix GmbH
Garbsener Landstr. 10
30419 Hannover
Germany

Tel:   +49 511 277-2734
Fax:   +49 511 277-2709
Email: 
Web:   www.arcutronix.com

*Synchronize the Ethernet*

General Managers: Dipl. Ing. Juergen Schroeder, Dr. Josef Gfrerer -
Legal Form: GmbH, Registered office: Hannover, HRB 202442, Amtsgericht
Hannover; Ust-Id: DE257551767.

Please consider the environment before printing this message.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SNMP-fix-error-code-for-invalid-get-requests.patch
Type: text/x-patch
Size: 1241 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20120903/f0e286b5/attachment.bin>


More information about the erlang-patches mailing list