Ethereal-dev: Re: [Ethereal-dev] using conversation_add_proto_data

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 26 Oct 2004 10:39:09 -0700
alok wrote:

Does anyone have a sample code as to how to use the function?

Yes - it's used by several dissectors. That's not "sample code" in the sense of code explicitly written to give a simple example of how to use it, but it is "sample code" in the sense that it's code that uses it....

Also, is there any other way (other than the packet-afs example) to do this: 1. find_conversation based on src, dest etc as usual && some_element_in_conversation?
2. define that as a conversation_new  etc?

What do you mean by "any other way"? What's inapproropriate, in your dissector, about the way it's being done in packet-afs.c?

In other words, which section of docs should be consulted if one wishes to build further demuxing capabilities on a particular protocol?

The only developer documentation we have is the various README files in the doc directory and the stuff linked to from the Development page in the Wiki:

	http://wiki.ethereal.com/Development

If there's nothing in there about conversations, it's because nobody's written it.