[erlang-patches] SNMP/VACM: bugfix for vacmViewTreeFamilyMask
Stefan Zegenhagen
stefan.zegenhagen@REDACTED
Wed Aug 1 11:30:19 CEST 2012
Dear all,
the implementation of SNMP-VIEW-BASED-ACM.mib assumes that the input for
vacmViewTreeFamilyMask is an OID consisting of 1's and 0's only to form
the mask. However, the MIB states that the input should be a bitstring.
The OID representation of the mask is useful in the code as it speeds up
time-critical code paths when checking access permissions for EACH SNMP
access. Reading/writing the view mask objects is less time-critical.
Therefore, to fix the issue, convert between OID representation and
bitstring when the vacmViewTreeFamilyMask objects are accessed. This is
done by the patch attached to this e-mail.
Kind regards,
--
Dr. Stefan Zegenhagen
arcutronix GmbH
Garbsener Landstr. 10
30419 Hannover
Germany
Tel: +49 511 277-2734
Fax: +49 511 277-2709
Email: stefan.zegenhagen@REDACTED
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-VACM-bugfix-for-vacmViewTreeFamilyMask.patch
Type: text/x-patch
Size: 4651 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20120801/8ad36cdc/attachment.bin>
More information about the erlang-patches
mailing list