Ethereal-dev: Re: [Ethereal-dev] Using SDP to detect RTP and RTCP streams

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 17 Nov 2003 13:56:02 -0800
On Nov 17, 2003, at 7:51 AM, Lars Roland wrote:

attached is a patch for the sdp dissector.
Checked in, with changes to get rid of the global variables (I pass a 
structure containing the pointers down to the dissectors for c= and 
m=), and to add some #includes to get "inet_aton()" declared.
However, this is a first try and it might not work in some cases.
It currently doesn't handle the case of a set of multicast addresses in 
a c= line, e.g. "c=IN IP4 224.2.1.1/127/3", or multiple "c=" lines, nor 
does it handle the case of multiple ports in an m= line.  (Note that it 
should ignore SDP packets that have multiple addresses *and* ports; to 
quote RFC 2327:
	It is illegal for both multiple addresses to be specified in the  "c=" 
field and for multiple ports to be specified in the "m=" field in the 
same session description.)