Skip site navigation (1)Skip section navigation (2)
Date:      18 Oct 1999 14:02:42 -0000
From:      patrick@mindstep.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        patrick@mindstep.com
Subject:   ports/14397: Apple's RTSP proxy does not connect UDP properly
Message-ID:  <19991018140242.632.qmail@jacuzzi.local.mindstep.com>

next in thread | raw e-mail | index | archive | help

>Number:         14397
>Category:       ports
>Synopsis:       Apple's RTSP proxy does not connect UDP properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 18 07:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Bihan-Faou
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
MindStep Corporation
>Environment:

FreeBSD 3.2-Stable. Ports updated on October 14, 1999.

Apple RTSP proxy distribution "1.0.1"

>Description:


The rtsp_proxy daemon needs to establish UDP connections with both the client
and the server. In order to do so it opens a UDP socket. However the source
address is incorrect (127.0.0.1) and no traffic can be exchanged with the rest
of the world.

This only happens if one is running "ipfw" and blocking traffic to the loopback
interface.


The fix consist in removing the call that gets the source IP address for the
proxy (which will always return 127.0.0.1) and to not specify a source address
when creating the UDP sockets.


>How-To-Repeat:

ipfw add deny from any to 127.0.0.0/8

cd /usr/ports/net/rtsp_proxy
make install

try to connect to a streaming server using the QuickTime 4 player

no connection happens, the player eventually times out.


>Fix:
	

diff -urN rtsp_proxy.orig/patches/patch-ac rtsp_proxy/patches/patch-ac
--- rtsp_proxy.orig/patches/patch-ac	Wed Dec 31 19:00:00 1969
+++ rtsp_proxy/patches/patch-ac	Sat Oct 16 10:46:23 1999
@@ -0,0 +1,30 @@
+--- ../proxy.c.orig	Sat Oct 16 10:29:52 1999
++++ ../proxy.c	Sat Oct 16 10:30:01 1999
+@@ -127,7 +127,9 @@
+ //int		gUDPPortMin = 4000;
+ //int		gUDPPortMax = 65535;
+ 
+-int		gProxyIP = -1;
++#define ANY_ADDRESS	-1
++
++int		gProxyIP = ANY_ADDRESS;
+ int		gMaxPorts = 0;
+ 
+ unsigned long gBytesReceived = 0;
+@@ -137,7 +139,6 @@
+ unsigned long gLastPacketsReceived = 0;
+ unsigned long gLastPacketsSent = 0;
+ 
+-#define ANY_ADDRESS	-1
+ 
+ /**********************************************/
+ #if defined(unix)
+@@ -243,7 +244,7 @@
+ 		add_rtsp_port_listener(listening_port);
+ 
+ 	//
+-	gProxyIP = get_local_ip_address();
++	//gProxyIP = get_local_ip_address();
+ 
+ 	//
+ 	// compile regular expressions for RTSP

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991018140242.632.qmail>