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.