Ethereal-dev: Re: [Ethereal-dev] Modifications to the LDAP dissector

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Mon, 21 Nov 2005 23:29:50 -0800
Richard Sharpe wrote:

Eventually, I would like to be able to switch on or off display of the ASN.1 headers as well, so people can better see what is going on.

The best way to do that is probably to change it to use the new packet-ber.c routines - which *automatically* gets you the ability to control the display of the ASN.1 BER tag/length information (there's a preference in the BER dissector for that), and also gets us one step closer to nuking epan/asn1.[ch] (all new dissectors for BER-encoded protocols should be done with the packet-ber.c routines - and, ideally, with asn2eth.py):

	http://wiki.ethereal.com/Removeold-styleASN.1code

If you're *really* ambitious, taking the ASN.1 from the RFC and using asn2eth.py to generate the dissector would handle that and should also make the structures display more in line with the RFC.

See

	http://wiki.ethereal.com/Asn2eth

(and pages to which it refers) for information on asn2eth.