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

Hello, i have some extra tags that i would like to decode inside a GSM-MAP message. So i decided to add my dissector code inside the allready defined code for GSM-MAP (edit /epan/dissector/packet-gsm_map.c file). After adding my impacts inside the existing code i tried to build again the source code, after the compilation of the new gsm_map.c file compiler came up with some errors inside gsm_map.cnf file displaying the extra data and structures added. Below you can se some logs of the errors

"ett_gsm_map_lsc_XXX" undeclared identifier
"dissect_gsm_map_lsc_XXX" undeclared identifier
"initializer is not a contstant"
etc.
Inside the error logs the gsm_map.cnf file appears. I think i should edit and update accordingly the gsm_map.cnf file but i dont know how Any idea?

asked 06 Oct '16, 02:11

vapashos's gravatar image

vapashos
6112
accept rate: 0%

edited 06 Oct '16, 02:28

Jaap's gravatar image

Jaap ♦
11.7k16101


The erroneous line indicated by the compiler is somewhat of a red herring as the packet-gsm_map.c is a generated file there is statements like this #line 227 "./asn1/gsm_map/gsm_map.cnf" generated in the code so the compiler will refer to offsets of those. It is possible to edit packet-gsm_map.c and make it compile but "right" way would be to edit the ASN1 files with your new tags and regenerate the file I suppose.

permanent link

answered 07 Oct '16, 04:13

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

edited 07 Oct '16, 07:00

sindy's gravatar image

sindy
6.0k4851

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×637
×13
×12

question asked: 06 Oct '16, 02:11

question was seen: 1,221 times

last updated: 07 Oct '16, 07:00

p​o​w​e​r​e​d by O​S​Q​A