From owner-freebsd-ports Mon Oct 18 7:10: 7 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A872515136 for ; Mon, 18 Oct 1999 07:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA71626; Mon, 18 Oct 1999 07:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from modemcable156.106-200-24.mtl.mc.videotron.net (modemcable156.106-200-24.mtl.mc.videotron.net [24.200.106.156]) by hub.freebsd.org (Postfix) with SMTP id 5EAC115007 for ; Mon, 18 Oct 1999 07:02:49 -0700 (PDT) (envelope-from patrick@jacuzzi.local.mindstep.com) Received: (qmail 633 invoked by uid 0); 18 Oct 1999 14:02:42 -0000 Message-Id: <19991018140242.632.qmail@jacuzzi.local.mindstep.com> Date: 18 Oct 1999 14:02:42 -0000 From: patrick@mindstep.com Reply-To: patrick@mindstep.com To: FreeBSD-gnats-submit@freebsd.org Cc: patrick@mindstep.com X-Send-Pr-Version: 3.2 Subject: ports/14397: Apple's RTSP proxy does not connect UDP properly Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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