Hi,
The post http://www.ethereal.com/lists/ethereal-dev/200511/msg00151.html
(ldap.tar.gz) contains a starting point for a asn2eth generated LDAP
dissector, at least the code (using the ber helpers) for
/*
* MatchingRuleAssertion ::= SEQUENCE {
* matchingRule [1] MatchingRuleId OPTIONAL,
* type [2] AttributeDescription OPTIONAL,
* matchValue [3] AssertionValue,
* dnAttributes [4] BOOLEAN DEFAULT FALSE
* }
* Of course, SEQUENCE is merged with the filter
* so there is no separate 30 ...
*/
Could be extracted from it and used instead of the old style asn1 code.
Brg
Anders
-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Guy Harris
Sent: den 22 november 2005 08:30
To: Ethereal development
Subject: Re: [Ethereal-dev] Modifications to the LDAP dissector
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.
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev