Ethereal-dev: [Ethereal-dev] Null conversation

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: Fri, 03 Feb 2006 12:59:59 +0100
Hello,
I'm using conversations for my dissector but I'm experencing
some problems.

- When my dissector 'sees' packet A it starts a conversation
and attaches a private data structure (stdout) to it:

conversation_new (pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype, pinfo->srcport, pinfo->destport, 0);
			conversation_add_proto_data (conversation, proto_pvm, (void *) stdout);

When it sees packet B it uses:

onversation_t *conv = find_conversation(pinfo->fd->num , &pinfo->src, &pinfo->dst,
												pinfo->ptype, pinfo->srcport, pinfo->destport,0);

but a NULL value is returned.

Is it because the 'pinfo->fd->num' value used in find_conversation should be the one used in conversation_new? And if so, should i save this value somewhere and the RE-USE in find_conversation? Is there a standard way to deal with this?

Thank you

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