
Jens Engel wrote:
Hello,
I just stumbled over the following problem in libsmi 0.4.8 and development trunk-tip rev34557 (as of today).
This must have existed at rev16122 because I can demonstrate it with that version.
The problem resides in the SYNTAX/WRITE-SYNTAX clauses in COMPLIANCE statements. Instead of a "type" the invalid term "(null)" is present.
AFFECTED-MIBS (at least):
- BRIDGE-MIB
- SNMP-VIEW-BASED-ACM-MIB
- ...
=> grep "(null)" *-MIB
EXAMPLE: smidump --format=smiv2 BRIDGE-MIB ... OBJECT dot1dStpPriority SYNTAX (null) (0 | 4096 | 8192 | 12288 | 16384 | 20480 | 24576 | 28672 | 32768 | 36864 | 40960 | 45056 | 49152 | 53248 | 57344 | 61440)
If you dump BRIDGE-MIB as v1 that clause appears as:
-- OBJECT dot1dStpPriority -- SYNTAX (null) (0 | 4096 | 8192 | 12288 | 16384 | 20480 | 24576 | 28672 | 32768 | 36864 | 40960 | 45056 | 49152 | 53248 | 57344 | 61440)
only the first line is commented.