From owner-freebsd-net Wed Aug 2 19: 9:59 2000 Delivered-To: freebsd-net@freebsd.org Received: from inet-smtp3.oracle.com (inet-smtp3.oracle.com [205.227.43.23]) by hub.freebsd.org (Postfix) with ESMTP id 423A537B540 for ; Wed, 2 Aug 2000 19:09:57 -0700 (PDT) (envelope-from Loganathan.Ramasamy@oracle.com) Received: from gmgw02.us.oracle.com (gmgw02.us.oracle.com [130.35.60.93]) by inet-smtp3.oracle.com (8.9.3/8.9.3) with ESMTP id TAA02084 for ; Wed, 2 Aug 2000 19:10:07 -0700 (PDT) Received: from oracle.com (loramasa-pc.us.oracle.com [144.25.191.87]) by gmgw02.us.oracle.com (8.8.8+Sun/8.8.8) with ESMTP id TAA09930 for ; Wed, 2 Aug 2000 19:09:15 -0700 (PDT) Message-ID: <3988D054.67921194@oracle.com> Date: Wed, 02 Aug 2000 18:52:20 -0700 From: Loganathan Ramasamy X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: why SO_REUSEADDR option ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In the Richard stevens "Unix Network Programming" , it is mentioned that one of the scenarios in which SO_REUSEADDR used is "To bind the same port number with different IP aliases of the host system to different endpoints" I didn't quite get the reason why SO_REUSEADDR has to be used in this scenario. If i don't use why will i get the error "address already in use" , since Source IP address in a 5 tuple connection is going to be different for different endpoints. ie why bind(IP1,P1) and bind (IP2,P1) should give error if i don't use SO_REUSEADDR ?? So can somebody explain it . Thanks loganathan.R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message