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

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%


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

permanent link

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×34
×13
×10
×3

question asked: 10 Sep '12, 07:52

question was seen: 2,040 times

last updated: 11 Sep '12, 01:46

p​o​w​e​r​e​d by O​S​Q​A