From owner-freebsd-stable Wed Feb 13 13:34:54 2002 Delivered-To: freebsd-stable@freebsd.org Received: from ns.a1.org.uk (ns.a1.org.uk [194.105.64.163]) by hub.freebsd.org (Postfix) with ESMTP id 0B50D37B416 for ; Wed, 13 Feb 2002 13:34:48 -0800 (PST) Received: from a1.org.uk (host217-35-92-236.in-addr.btopenworld.com [217.35.92.236]) by ns.a1.org.uk (8.9.3/8.9.3) with ESMTP id VAA16056 for ; Wed, 13 Feb 2002 21:33:28 GMT (envelope-from bap@a1.org.uk) Message-ID: <3C6ADBDD.176B9C5F@a1.org.uk> Date: Wed, 13 Feb 2002 21:34:21 +0000 From: Bap X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: Multicast bind problem References: <20020213225726.A79566@rucus.ru.ac.za> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Siebörger wrote: > Bap wrote: > > I am trying to start 2 processes on my box 4.5-RC FreeBSD 4.5-RC #3: Thu > > Jan 24 19:18:28 GMT 2002 > > > > The 1st one starts no problem, then the 2nd one exits with a bind > > exception (Address already in use) > > > > The processes are both trying to bind to a multicast socket (actually > > SUNs JINI Reggie and LookupBrowser) > > If two sockets are to bind the same local port, they need to have the > SO_REUSEADDR or SO_REUSEPORT socket options set. For example, > > int one=1; > setsockopt (s, SOL_SOCKET, SO_REUSEADDR, &one, sizeof (one)); > > See getsockopt(2) for further details. > > I'm afraid I know nothing about the specific JINI programs you > mention, but I'd guess that they aren't setting those socket options. > > -- > David Siebörger > drs-stable@rucus.ru.ac.za > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message Thanks for the info, but, I doubt that the java classes from Sun which should work in any jvm, would have incorrect socket options (I've used these exact classes on Solaris with no problems) I don't have the java source here, so can't check. The only places I can think where something has gone wrong is my OS config or the linux jdk I'm running Are there any more suggestions? TIA Bap. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message