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 |
One Answer:
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 Quantin 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?
include <epan asn1.h="">
probably, look at other asn1 based dissectors.