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

Dynamic Header field names

0

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


One Answer:

0

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

answered 05 Feb '13, 19:44

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%