[Live-devel] Streaming Redirection

Ross Finlayson finlayson at live.com
Fri Jan 30 11:28:55 PST 2004


>But here's a list of things I had to change to get this to work.  I think 
>its fairly straight forward.
>1) I completely rewrote the parseTransportHeader to get more 
>information.  Multicast/Unicast, Destination, TTL, Client_Port.

Jeff,

Could you post your modified "parseTransportHeader()" implementation?  (It 
looks like this could be useful.)

(BTW, I just realized that there's a bug in the definition of 
"ServerMediaSubsession::getStreamParameters()" - the "destinationAddress" 
and "destinationTTL" parameters are supposed to be 'out' parameters, so 
they should be passed by reference, not by value.  I'll fix this in the 
next software release.)

As an aside, note that allowing a RTSP server to transmit to an arbitrary 
destination (as specified by the "destination" field in a client's 
"Transport:" header) is a security risk, because it allows a malicious 
client to launch a denial-of-service attack against an unwitting 
victim.  (In fact, the RTSP specification discourages this (see section 
12.39 of RFC 2326).)  I would be very wary about including support for this 
in a product, unless you also authenticated clients in some way.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list