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

Is there any way to change the header names in a dissector depending on the data that's dissected? or to have the header names extracted from a pre-initialized array?

example: array[]={"NewHeading1","NewHeading2"};

OLD DISPLAY:

-Frame 17300........

-Ethernet II,.......

-MYPROTOCOL

-Heading1

-SubHeading1

-SubHeading2

-Heading2

-SubHeading1

-SubHeading2

NEW DISPLAY:

-Frame 17300........

-Ethernet II,.......

-MYPROTOCOL

-NewHeading1

-SubHeading1

-SubHeading2

-NewHeading2

-SubHeading1

-SubHeading2

asked 03 Feb '13, 17:54

StealthUE's gravatar image

StealthUE
667713
accept rate: 100%

edited 03 Feb '13, 17:57


No. A particular field should always represent the same thing.

permanent link

answered 05 Feb '13, 19:44

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

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:

×40
×5

question asked: 03 Feb '13, 17:54

question was seen: 2,503 times

last updated: 05 Feb '13, 19:44

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