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

About the conversations table

0

Hello everyone, I am writing you about the source code for the conversation table in WireShark. More specifically, I am interested into the function that is in the menu Statistics -> Conversations. I found some source code file under the name conversations_table.c. Unfortunately, there is a serious lack of comments, thus making the code impossible to read.

I would like to ask you, if it is possible, to tell me if this is the source code file for the conversations table?

If it is, please send me some version with more comments if possible, or maybe explain to me shortly where exactly can I find the part where this conversations are made? I am really interested in this, and I would very much appreciate if you answer me as soon as possible.

Thank you in advance. Kiril

asked 10 Sep '12, 07:52

bluzerot's gravatar image

bluzerot
1223
accept rate: 0%


One Answer:

1

I would like to ask you, if it is possible, to tell me if this is the source code file for the conversations table?

Yes it is, together with the other conversations_*.c files, which are each just "handlers" for a certain protocol.

If it is, please send me some version with more comments if possible,

I don't think there is a "better/secret" version with more comments other than the code in the official sources. Unfortunately you are right, there is a serious lack of comments.

or maybe explain to me shortly where exactly can I find the part where this conversations are made?

Most of it is in that file. If you choose "Statistics -> Conversations" the 'callback' function init_conversation_notebook_cb() gets called which builds the GUI mask for the conversations.

The conversations table(s) is/are filled by listeners, which are registered in the files conversations_*.c, like this:

conversations_ip.c:register_tap_listener_ip_conversation().

Regards
Kurt

answered 10 Sep '12, 09:57

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Thank you Kurt, you have already helped me a lot!

You said that most of the explanation to where the conversations are made are in conversations_table.c. Can you please tell me in which functions exactly is the algorithm of the conversations?

Thank you in advance

Kiril

(11 Sep '12, 01:46) bluzerot