From owner-freebsd-net@FreeBSD.ORG Fri Jan 2 12:59:24 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FF0F16A4CF for ; Fri, 2 Jan 2004 12:59:24 -0800 (PST) Received: from da.mailomat.net (bn.mailomat.net [212.63.50.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C12643D53 for ; Fri, 2 Jan 2004 12:59:20 -0800 (PST) (envelope-from ap@bnc.net) Received: This line has been intentionally left blank. Received: from bnc.net (3s8j2avmbd2otqjd@port-212-202-6-74.reverse.qsc.de [212.202.6.74]) (user=bnc.mail mech=LOGIN bits=0) i02KxCwG037568 for ; Fri, 2 Jan 2004 21:59:16 +0100 (CET) (envelope-from ap@bnc.net) Received: by bnc.net (CommuniGate Pro PIPE 4.1.3) with PIPE id 445447; Fri, 02 Jan 2004 21:59:12 +0100 Received: from [194.39.192.154] (account ap HELO [194.39.192.154]) by bnc.net (CommuniGate Pro SMTP 4.1.3) with ESMTP-TLS id 445446 for freebsd-net@freebsd.org; Fri, 02 Jan 2004 21:58:34 +0100 Mime-Version: 1.0 (Apple Message framework v609) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7DB2A89E-3D66-11D8-A68D-000A95A0BB90@bnc.net> Content-Transfer-Encoding: 7bit From: Achim Patzner Date: Fri, 2 Jan 2004 21:59:01 +0100 To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.609) X-MailScanner-Information: Please contact info@mailomat.net for more information X-MailScanner: Found to be clean X-Virus-Scanned: by AMaViS perl-11 Subject: joining multicast groups correctly X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2004 20:59:24 -0000 (Please show some mercy if I'm looking too stupid...) Hi! As I'm running a number of subnets connected by a router on FreeBSD 4.9 certain people started annoying me about Rendezvous not crossing broadcast domains' borders (they didn't dare to complain that they couldn't broadcast their iTunes stuff all over the place. Well. It was around christmas so I didn't want to look like the asshole^nice person I usually seem to be and found a (Python) program that seemed to be exactly the nail to my hammer: mDNS Reflector (found at http://grahame.angrygoats.net/mdns.shtml). After BSDifying it a bit (actually adding an s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) where Linux seems to be satisfied by s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) alone I got it to run on Darwin 7.2 and on FreeBSD. But while it was doing its job quite nicely on Darwin it never returned from the select call waiting for incoming packets on FreeBSD. As Macs are obviously lousy routers (I could just as well buy Ciscos - if I found someone to pay for them) is there anyone with deep enough insight into the networking code to tell me how to modify said program? Happy new year... Achim