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

ASN2WRS does not create PDU (which is specified in .cnf file)

0

Hi, I have a with creating my asn1 dissector. I used the plugin template and there is a toyasn1.cnf file included. The PDU in this file is specified:

#.PDU TOYASN1-MESSAGE

In my Template i use the function : dissect_TOYASN1_MESSAGE_PDU(tvb,pinfo,toyasn1_tree)

Now i have the issue, while starting wireshark i get the following error:

undefined Symbol: dissect_TOYASN1_MESSAGE_PDU

The second thing i noticed is, that there is no static int hf_toyasn1_MESSAGE_PDU = -1 created in packet-toyasn1-hf.c

So, can someone tell me how that cnf file works? I thought i only have to put my PDU name in #.PDU and the main dissector function will be created automatically?

asked 15 Sep '14, 23:34

Venturina's gravatar image

Venturina
1779
accept rate: 0%


One Answer:

0

For the record this has been discussed and solved in this thread on the wireshark-dev mailing list.

answered 16 Sep '14, 03:05

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%