Wireshark-dev: Re: [Wireshark-dev] Including ASN.1 format coding in a C dissector
From: "Anders Broman \(AL/EAB\)" <[email protected]>
Date: Wed, 11 Apr 2007 16:48:16 +0200
You could export the relevant ASN1 sequence by adding somethig like this from
GSM_MAP in the gsm_map.cnf file
Add packet-ranap.h to the includes in your file and then use the exported funktion
offset = dissect_gsm_map_AddressString();
in your dissector. Is this something you plan to offer for inclusion in Wireshark?
Best regards


From: [email protected] on behalf of [email protected]
Sent: Wed 4/11/2007 2:10 PM
To: [email protected]
Subject: [Wireshark-dev] Including ASN.1 format coding in a C dissector

Hi ,


I have written  a dissector for a protocol which has a coding standard of Tag-Length-Value. Now in this dissector , I have to add some messages of RANAP protocol which has a coding standard in ASN.1 format.Already the dissector for RANAP is available in the wireshark. Now:


1.Can I call the existing dissector for those particular messages??? If so how do I do that??

2. If I want to include it normally in my dissector, how can I convert the ASN.1 format to obtain the tag and lengths of  individual parameters??


Can anybody please help??



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.