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

How to get the parent dissector information?

0

I wish to conditionally call col_set_str or col_append_str depends on the parent dissector information. But I was stuck by getting the parent dissector information. Anyone could help me to do this? Thanks!

asked 22 Jul '11, 01:50

piao's gravatar image

piao
6112
accept rate: 0%

edited 05 Oct '11, 17:10

multipleinterfaces's gravatar image

multipleinte...
1.3k152340


One Answer:

2

This is supposed to be handled the other way around. The parent sets the column non-writable, using col_set_writable(), then calls the subdissector, then restores the previous writable state of the column.

answered 22 Jul '11, 04:34

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

This way does not solve my problem. So I just let it be since not a big problem for me. Thanks anyway!

(26 Jul '11, 05:03) piao