Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal asn1.c packet-snmp.c asn1.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 10 Dec 1999 03:49:40 -0600 (CST)
guy         1999/12/10 03:49:35 CST

  Modified files:
    .                    asn1.c packet-snmp.c asn1.h 
  Log:
  Make the SNMP dissector use the ASN.1 code, rather than the SNMP library
  code, to dissect SNMP PDUs; use the SNMP library code only to translate
  OIDs into strings.
  
  Put into the ASN.1 code an annoying hack to cope with the fact that UCD
  SNMP makes an OID out of "u_long"s whilst CMU SNMP makes it out of
  "u_int"s - have the ASN.1 code make it out of "subid_t"s, and typedef
  "subid_t" appropriately depending on the SNMP library you have.
  
  Eventually, we should be able to use "libsmi" instead of a full-blown
  SNMP library, and thus possibly work around various aggravations with
  the SNMP libraries.
  
  Revision  Changes    Path
  1.2       +17 -10    ethereal/asn1.c
  1.16      +720 -726  ethereal/packet-snmp.c
  1.2       +36 -4     ethereal/asn1.h