Ethereal-dev: Re: [ethereal-dev] ldap dissector

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

Date: Tue, 21 Mar 2000 19:21:11 -0500 (EST)
On 21 Mar, Guy Harris wrote:
> That looks suspiciously similar, in part, to "asn1_length_decode()" in
> "asn1.c".  I suspect other ASN.1-reading code is similar to other
> routines in "asn1.c".
> 
> You might want to look at the SNMP dissector, and the ASN1 code in
> "asn1.c" - as LDAP is ASN.1-based, you might as well use the existing
> ASN.1 code in Ethereal if possible (and, if not, look at modifying so
> that it *is* possible; the reason why the ASN.1 code is in a separate
> file from "packet-snmp.c" is so that it *can* be used by other
> ASN.1-based protocols, and when I took the GXSNMP ASN.1 code and put it
> into Ethereal, LDAP was one of the protocols I was thinking of...).

Yeah, this is the kind of thing I wanted to know about before I
finished <g>. It shouldn't take me long to convert, I'll still need my
own wrapper functions to handle the automatic populating of the tree.

If that's the only thing wrong, I should have a completed decoder in a
few days.

-- 
Doug Nazar
Dragon Computer Consultants Inc.
Tel: (416) 708-1578     Fax: (416) 708-8081