
15 May
2001
15 May
'01
3:08 a.m.
Keith Dart writes:
Keith> I'm trying to map libsmi BASETYPE values to SNMP base Keith> types. RFC 2578 defines the base types as:
[...]
Keith> Libsmi adds some extra ones, and omits others. Here's my Keith> problem (by way of example).
[...]
Keith> Could someone please explain this to me, and possibly give me a Keith> clue as to how to map libsmi SYNTAX/SmiType values to canonical Keith> SNMP/RFC2578 types? Thank you.
libsmi follows the SMIng model and has a different set of base types than the SNMP protocol has. libsmi treats TimeTicks as a dervied type.
Take a look at getSnmpType() in dump-stools.c for a piece of code that does the mapping you are looking for.
/js
--
Juergen Schoenwaelder Technical University Braunschweig
schoenw@ibr.cs.tu-bs.de Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289 Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax: +49 531 391 5936 URL:http://www.ibr.cs.tu-bs.de/~schoenw/
--
!! This message is brought to you via the `libsmi' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de.
!! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.