Ethereal-dev: [Ethereal-dev] A Doubt

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: Sun, 12 Feb 2006 13:55:52 +0100
A doubt ;- )

Let's suppose i have two couple of related packets ( A & A1, B & B1). I want to start two different conversations (one when as soon as A is captured, one when B is captured).
Now, if the packets are sniffed in this order:

A A1 B B1

There are no problems because the function
conversation_find (pinfo->fd->num) returns A when A1 is sniffed and B when B1 is sniffed (correct me if i m wrong)

now, let's consider this scenario (even if improbabile is not impossible)

A                    B                  A1                    B1

When A1 is sniffed the returned conversation is B and this doesn't let my plugin properly dissect A1.

Shall I use a GHashTable? Are there any other ways of solving this problem?

thank you

_________________________________________________________________
Videochiamata? Prova MSN Messenger: divertente, facile, veloce, gratuito! http://www.msn.it/messenger/v7