Ask Your Question
0

col_set_time(...) in custom dissector not working

asked 2019-08-30 09:15:15 +0000

dyne94 gravatar image

Hi guys,

in my custom dissector which is written in C, I try to implement the capture time in the first column. Unfortunately my previous approaches didn't work. Ether with col_set_time(pinfo->cinfo, COL_REL_TIME, &ts, "custom_dissector.time_relative"); nor col_set_time(pinfo->cinfo, COL_ABS_TIME, &ts, "custom_dissector.time_relative"); the time will be displayed. Even with the col_add_str(...) for this column I don't get a result. My question is what is going wrong here? In the dissector readme I can't find any information.

Best regards,

Julian

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-08-30 17:49:32 +0000

Jaap gravatar image

A common reason is that is that these function calls may not be part of an if (tree) {...} block, either directly, or indirectly through other function calls.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-08-30 09:15:15 +0000

Seen: 226 times

Last updated: Aug 30 '19