cederberg / mibble

Mibble is an open-source SNMP MIB parser library for Java.
https://www.mibble.org/
Other
111 stars 69 forks source link

Strict SMIv1 and SMIv2 parsing #4

Closed cederberg closed 7 years ago

cederberg commented 12 years ago

When parsing SMIv1 files, any usage of symbols or constructs from SMIv2 should trigger a warning.

The opposite goes for SMIv2 files.

cederberg commented 7 years ago

The simplest possible implementation should probably identify and categorize these three basic MIB imports. Warning could be issued when using "pre-SMIv1" or when mixing SMIv1 and SMIv2.

Macro definitions — OBJECT-TYPE (and more for SMIv2):

SMI definitions — enterprises, IpAddress and others:

Textual conventions — DisplayString, PhysAddress and others:

Warnings should probably also be issued when using a macro def without prior import.

cederberg commented 7 years ago

Closing. Fixed in 2.10.