Re: [Wireshark-dev] Reading packet comment in a dissector?

2016-10-18 Thread Martin Mathieson
I was able to do this at least for now (thanks Anders). if (tree != NULL) { GPtrArray *items = proto_all_finfos(tree); if (items) { guint i; /* TODO: if get past "frame" entries, not going to be found, so break. */ for (i=0; i< items->len; i+

[Wireshark-dev] Reading packet comment in a dissector?

2016-10-17 Thread Martin Mathieson
Hi, I am trying to read the per-packet (user) comment in a post-dissector. Calling epan_get_user_comment(pinfo->epan, pinfo->fd) doesn't work - it the epan_session callback for get_user_comment() is set to NULL. The callback that is set in places where the comment is available uses ws_get_user_co