This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Dissector based on two asn files

0

Hey, i'm realy new in building dissectors in Wireshark. Now i'm trying to create a dissector based on an asn file. I used the example to understand the basic functions of asn2wrs and i think i understood it. But now i don't know what files do i need to create, if i have a asn file, witch is based on an other asn file. If i look at the Makefile of the foo example, i don't know hat i have to change if i have to use two asn files. Can someone help me?

asked 27 Aug '14, 00:58

Venturina's gravatar image

Venturina
1779
accept rate: 0%


One Answer:

1

You just need to add your various ASN.1 source files to the ASN_FILE_LIST defined in Makefile.common. As an example, you can take a look at the asn1/ulp folder that includes 3 ASN.1 files.

answered 27 Aug '14, 03:32

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

edited 27 Aug '14, 03:32

Thanks, that works. But now i get many errors if i run the top level Make. one of them ist error:unknown type name 'asn1_ctx_t'. Did i forgot an include in my template? Or where is this type defined?

(27 Aug '14, 04:56) Venturina

include <epan asn1.h="">

probably, look at other asn1 based dissectors.

(27 Aug '14, 06:04) Anders ♦