Ethereal-dev: Re: [Ethereal-dev] H235 & ASN1 compiler

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

From: "Olivier Biot" <ethereal@xxxxxxxxxx>
Date: Tue, 25 May 2004 22:58:39 +0200
Hi ASN1 folks,

If I try to manually create the H.235 dissectors as explained by
Ronnie:

$ cd asn1/h235/
$ python ../../tools/asn2eth.py -X -p h235 -c h235.cnf \
> -s packet-h235-template H235-SECURITY-MESSAGES.asn

I then get the following output:

sys:1: DeprecationWarning: Non-ASCII character '\x96' in file
../../tools/asn2eth.py on line 25, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
yacc: Warning. Token 'EXTERNAL' defined, but not used.
yacc: Warning. There is 1 unused token.
yacc: Generating SLR parsing table...
yacc: 22 shift/reduce conflicts
ASN.1 to Ethereal dissector compiler
Dummy imported:  ToBeSigned

[Note that the errors above also appear when calling the python script
without command-line parameters.]

If I copy the 2 generated files packet-h235.[ch] to ../.. and compile
Ethereal, I then get a compiler warning and a resulting linker error
since packet-h235.c contains a NOT_DECODED_YET macro which does not
exist anymore in PER/BER, as it has been replaced with
PER_NOT_DECODED_YET/BER_NOT_DECODED_YET. The question is whether this
should be fixed in packet-h235-template.c or in the asn2eth.py script?

Regards,

Olivier