From owner-freebsd-net Wed May 30 8:33:59 2001 Delivered-To: freebsd-net@freebsd.org Received: from tp.databus.com (p101-46.acedsl.com [160.79.101.46]) by hub.freebsd.org (Postfix) with ESMTP id CC63F37B42C for ; Wed, 30 May 2001 08:33:51 -0700 (PDT) (envelope-from barney@tp.databus.com) Received: (from barney@localhost) by tp.databus.com (8.11.3/8.11.3) id f4UFXIS53794; Wed, 30 May 2001 11:33:18 -0400 (EDT) (envelope-from barney) Date: Wed, 30 May 2001 11:33:18 -0400 From: Barney Wolff To: Alex Rousskov Cc: horape@tinuviel.compendium.net.ar, freebsd-net@FreeBSD.ORG Subject: Re: why cannot bind to someipaddress:port when something else has *:port bound? Message-ID: <20010530113318.A53768@tp.databus.com> References: <20010530073150.A15247@tinuviel.compendium.net.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rousskov@measurement-factory.com on Wed, May 30, 2001 at 07:41:42AM -0600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org See SO_REUSEADDR. Barney Wolff On Wed, May 30, 2001 at 07:41:42AM -0600, Alex Rousskov wrote: > On Wed, 30 May 2001 horape@tinuviel.compendium.net.ar wrote: > > > The following program binds *:1000 to a socket, and then tries to > > bind 200.47.36.254:1000 to another socket, the error i gets is > > "Address already in use". Why? > > *:1000 includes 200.47.36.254:1000 by definition of bind(2). Binding > two sockets to one address (200.47.36.254:1000 in your case) cannot be > allowed because it is unclear which of the two sockets should recieve > packets destined to 200.47.36.254:1000. There may be other reasons. > > Alex. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message