Ethereal-dev: Re: [Ethereal-dev] Capture RTP/RTCP

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Mon, 29 Apr 2002 13:44:14 -0700
On Mon, Apr 29, 2002 at 02:15:10PM -0500, David Frascone wrote:
> I'm looking at packet-rtsp.c now, to see how to do it, and I'm a little
> confused.
> 
> It seems like the conversation_new is all you need to call.

No.

You also need to call "conversation_set_dissector()", which is the call
that actually specifies that the conversation should be dissected with
the dissector for the handle in question.

> Does that end up registering a temporary dissector for future traffic?

"conversation_set_dissector()" sets a dissector for all traffic in the
conversation.  I wouldn't call it "temporary", however.

> And, does stuff get cleaned up when the conversation is over?

What do you mean by "over"?  There's no notion of a conversation being
"over" until you either close or redissect a capture - the data
structure for the conversation persists, and there's currently no way to
say "no packets after frame N should be considered part of this
conversation".