Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] ASN2WRS does not create PDU (which is specified in .cnf file

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Tue, 16 Sep 2014 11:15:34 +0200


Le 16 sept. 2014 10:55, "Christina Obermaier" <christina.obermaier@xxxxxxxx> a écrit :
>
> Hi,
>
> I have a question according to the creation of an asn1 dissector plugin.
>
> I used the Toyasn1 sample to create my own dissector.
> The only thing i changes were the .asn files. There i used my own files (CAM.asn and ITS-Container.asn) which i specified in the makefile.
>
> Then i tryed to compile the plugin. I think this works very well, only a few wunused-function warnings are appearing.
> So i started Wireshark and get the error: undefined Symbol: dissect_TOYASN1_MESSAGE_PDU
>
> In the .cnf file is specified:
> .#PDU
> TOYASN1-MESSAGE
>
> So now i dont know what i have to do, to solve the error.
>
> I hope someone can help me..
> Greetings Christina
>

Hi,

You need to replace this line with the name of the top level PPU in your ASN.1 file. For example if you look at the files in asn1/c1222, you will see that the c1222.cnf file contains:
#.PDU
MESSAGE

where MESSAGE is the top PDU in the c1222.asn file.

Then you need to edit the .c file to put the corresponding function name that will be generated by asn2wrs (for c1222 dissector it is dissect_MESSAGE_PDU).

Regards,
Pascal.