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

col_append_fstr doesn’t append. Why?

0

Hi all;

After the reassembling developments we've made in our dissector plugin, col__ append__ fstr doesn't work correctly anymore. It does not append, it works like col__ add__fstr and displays the last item only.

col append fstr(pinfo->cinfo, COL __ INFO, "%s(%d) ", message_name, messageId);

Why would it be?

asked 17 May '13, 00:01

barisalis's gravatar image

barisalis
16337
accept rate: 100%


One Answer:

0

After reassambling, pinfo does not contain the whole packet but contains the specific message only. That's the reason of the problem.

It's solved after calling the col _ clear function before tcp _ dissect _ pdus.

answered 17 May '13, 00:17

barisalis's gravatar image

barisalis
16337
accept rate: 100%

edited 17 May '13, 00:18