Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal conversation.c conversation.h packet-afs.c
guy 1999/10/24 02:27:36 CDT
Modified files:
. conversation.c conversation.h
packet-afs.c packet-smb.c
Log:
Export the data structure used to represent a conversation.
Replace "add_to_conversation()" with:
"conversation_new()", which creates a new conversation, given
source and destination addresses and ports, and returns a
pointer to the structure for the conversation;
"find_conversation()", which tries to find a conversation for
given source and destination addresses and ports, and returns a
pointer to the structure for the conversation if found, and a
null pointer if not found.
Add a private data pointer field to the conversation structure, and have
"conversation_new()" take an argument that specifies what to set that
pointer to; that lets clients of the conversation code hang arbitrary
data off the conversation (e.g., a hash table of protocol requests and
replies, in case the protocol is a request/reply protocol wherein the
reply doesn't say what type of request it's a reply to, and you need
that information to dissect the reply).
Revision Changes Path
1.2 +45 -47 ethereal/conversation.c
1.2 +13 -2 ethereal/conversation.h
1.3 +12 -5 ethereal/packet-afs.c
1.32 +11 -7 ethereal/packet-smb.c