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

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"
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

accept rate: 0%

edited 06 Oct '16, 02:28

Jaap's gravatar image

Jaap ♦

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 ♦
accept rate: 17%

edited 07 Oct '16, 07:00

sindy's gravatar image


Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


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