Re: [libsmi] Re: smidump -f smiv1 output

Hi!
Frank Strauss writes:
Frank>Such a change is not necessary. The SMIv1 output as it is produced now Frank>is valid and reflects more closely what the original SMIv2 defines.
What was produced as output was the same definition as existed in the SMIv2 MIB module. Will a MIB browser that only understands SMIv1 know what an InetAddressType SYNTAX is?
Kristine Adamson IBM Communications Server for MVS: TCP/IP Development Internet e-mail:adamson@us.ibm.com

Hi!
Frank> Such a change is not necessary. The SMIv1 output as it is Frank> produced now is valid and reflects more closely what the Frank> original SMIv2 defines.
Kristine> What was produced as output was the same definition as Kristine> existed in the SMIv2 MIB module. Will a MIB browser that Kristine> only understands SMIv1 know what an InetAddressType SYNTAX Kristine> is?
The definition of the OBJECT-TYPEs does not change (to this respect). But the definition of TEXTUAL-CONVENTIONs is changed to ASN.1 type definitions. Hence, when your set of MIBs is converted to SMIv1, also INET-ADDRESS-MIB is converted to SMIv1 and your MIB imports it and knows about the type defintion of InetAddressType.
-frank

Kristine Adamson writes:
Kristine> What was produced as output was the same definition as Kristine> existed in the SMIv2 MIB module. Will a MIB browser that Kristine> only understands SMIv1 know what an InetAddressType SYNTAX Kristine> is?
A browser capable to deal with imported type definitions should work just fine assuming that the module you import from is also converted to SMIv1 format (that is the TC has been replaced by a type definition).
If you want to produce output for really broken and stupid MIB parsers, then you need to add code which inlines everything to avoid external references as much as possible. While this can be done and is more a programming exercise than anything else, I am not sure this is really useful since such an output option would just feature broken implementations, which I thing points into the wrong direction.
/js
participants (3)
-
Frank Strauss
-
Juergen Schoenwaelder
-
Kristine Adamson