From owner-freebsd-stable Wed Feb 13 12:57:38 2002 Delivered-To: freebsd-stable@freebsd.org Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by hub.freebsd.org (Postfix) with SMTP id 49B5037B402 for ; Wed, 13 Feb 2002 12:57:30 -0800 (PST) Received: (qmail 92385 invoked from network); 13 Feb 2002 20:57:27 -0000 Received: from shell-fxp1.rucus.ru.ac.za (HELO shell.rucus.ru.ac.za) (10.0.0.1) by server.rucus.ru.ac.za with SMTP; 13 Feb 2002 20:57:27 -0000 Received: (qmail 79780 invoked by uid 1040); 13 Feb 2002 20:57:27 -0000 Date: Wed, 13 Feb 2002 22:57:26 +0200 From: =?iso-8859-1?Q?David_Sieb=F6rger?= To: freebsd-stable@freebsd.org Subject: Re: Multicast bind problem Message-ID: <20020213225726.A79566@rucus.ru.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <3C6ABEA4.427E23F3@a1.org.uk> 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 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