On Wed, Jul 24, 2002 at 12:03:55PM +0300, cpetrut wrote: > A few weeks ago I starting to develop plugins for Ethereal, and now I > have problems with protocols implementation. > > I want to automaticaly decode RTP and RTCP, for a range of ports. > (not using "Decode as..." option)
"Automatically" in what sense? I.e., where do you find out the range of ports? If there's some other protocol that has messages indicating that certain ports are used for RTP and RTCP - RTSP, for example - and RTP and RTCP will be running over UDP, for example, then you'd do it the same way the RTSP dissector does it, i.e. you'd construct a "conversation", given the IP addresses of the hosts that will be exchanging RTP and RTCP messages, and the port numbers being used, and specify that the RTP and RTCP dissectors should be used for that conversation.