Ethereal-dev: [Ethereal-dev] What if I didn't use conversations?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "fabio matturro" <fabiomax3@xxxxxxxxxxx>
Date: Thu, 23 Feb 2006 20:27:28 +0100
Hello
I'm successfully using conversation to store data about packets dissected : ) So, for instance if 'packet A' cointains the OPCODE and 'packet A1' parameters I can easily relate one another. Since conversation_t structure as a GList pointer to the data added I've solved also
the following issue:

A                     B                      A1                      B1
time ------>  (B follows A, A1 follows B and so on)

What I do is to use g_slist_find_custom () with an appropriate GCompareFunc() and find for the packet I need (then if A1 comes after B it's still dissected correctedly)

But I was wondering whether I actually needed a conversation to do this. I mean, isn't it simpler to just define a global GList and put info into it? (A global GList should keep opcode infoes permanently during the dissect phase, if i m not shamely wrong:- ) ).

Thanx

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://www.ilovemessenger.msn.it/