Ethereal-dev: Re: [Ethereal-dev] A patch for COPS dissector

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

From: Kari Tiirikainen <kari.tiirikainen@xxxxxxxxx>
Date: Sun, 28 Apr 2002 12:03:37 +0300
ext Guy Harris wrote:
> 
> On Fri, Apr 26, 2002 at 01:10:15PM +0300, kari.tiirikainen@xxxxxxxxx wrote:
> > This patch will correct two defects in COPS-PR dissector printout for
> > OCTET STRING type data for two PRIDs. It will also remove some old
> > stuff that's not useful.
> 
> Checked in (with some stuff made static).

Thanks, I didn't have time to make it neat, just make it work.

> Would it make sense to read PIB files (which appear to be in ASN.1 form,
> as MIBs are) and use them to interpret objects in COPS, just as we read
> MIB files and use them to interpret objects in SNMP?

It would, but the ASN.1 syntax is slightly different from the one used
in SNMP
(COPS SPPI vs. SNMP SMI). So no SNMP library can handle PIBs without
modifications.
I went around the problem by converting PIBs to MIBs first, using rules
defined
in RFC 3159 (SPPI) Appendix A: Mapping a PIB to a MIB.

One can always write a compiler for that would do the conversion. But
writing
compilers is not really my thing, so if anyone finds the time &
interest,
please go ahead and write one. The conversion rules are not that
complex,
so it shouldn't be too difficult.

One thing that should be look at is Intel's COPS SDK, the new version
has
a PIB compiler in it, so maybe there is already some things that could
be used.
See http://www.intel.com/labs/manage/cops/download.htm

Best Regards, Kari