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

Problem with creating an ASN1 dissector

0

Hey, I try to create a new ASN1 dissector for the CAM protocol. If i try to compile the whole Wireshark i get the following error: epan/.libs/libireshark.so: undefined refferenc to 'dissect_CAM_PDU'

I do not know where this error comes from.. I have a function call dissect_CAM_PDU in my packet-CAM-template.c (like its in the older version of the dissector) but i do not find the body of the function.. I thougt it may be a function which is generatet automatically? But it does not seem so..

Can someone help?

asked 08 Sep '14, 01:41

Venturina's gravatar image

Venturina
1779
accept rate: 0%


One Answer:

1

Hi, It's not so easy to give advice without seeing the actual code. If this is a public protocol and you intend to submit it to Wireshark you could upload it for review trough gerrit.

In general in the template you will ned a function that "calls" the generated part of the code how this is to be designed depends on the protocol. So probably you need the body of "dissect_CAM_PDU" in the template or .cnf file or possibly if the ASN1 contains CAM-PDU ::= the dissect_CAM_PDU() function should have been generated for you.

answered 08 Sep '14, 04:09

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

Looking at ETSI TS 102 637-2 V1.2.1 (2011-03)

-- ASN1START CAM-PDU-Descriptions { itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102637) cam (2) version1 (1) } DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS ItsPduHeader, VehicleCommonParameters, ProfileParameters, StationID, TimeStamp, ReferencePosition FROM DENM-PDU-Descriptions { itu-t (0) identified-organization (4) etsi (0) itsDomain (5) wg1 (1) ts (102637) denm (3) version2 (2) }; -- The root data frame for cooperative awareness messages CamPdu ::= SEQUENCE { header ItsPduHeader, cam CoopAwareness } :

It looks like dissect_cam_CamPdu() (or something similar depending on the name you chose for your dissector) should have been automatically generated.

(08 Sep '14, 04:23) Anders ♦