Ethereal-dev: [Ethereal-dev] The COPS dissector and asn1 code

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

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Fri, 23 Sep 2005 21:43:47 +0200
Hi,
Looking into the possibility to change the code reading BER encoded data in
packet-cops.c from the old asn1.c decoder to functions from packet-ber.c
raises a question on how we want to handle the interface to the SNMP library
and OID:s. 

To read information about an OID from a MIB the OID needs to be in a subid_t
structure but internally we most often use a string. I think we could
probably do wrappers for the functions taking a tvbuff_t argument instead
and put them in packet-snmp.c or in a new file(snmp.c/oid.c/foramat_oid.c?).
 This approach would also fit with FT_OID where OID name could be fetched
from the MIB database if not founds in the internal hashtable.

A problem is how to replace the "last_decoded_prid_oid" structure in
packet-cops.c.

Is this the way we want to go?

Best regards
Anders