From owner-freebsd-net@FreeBSD.ORG Thu Mar 8 13:23:49 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 137F216A406 for ; Thu, 8 Mar 2007 13:23:49 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id DCACF13C4B4 for ; Thu, 8 Mar 2007 13:23:48 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 6D1B91F65AF; Thu, 8 Mar 2007 08:23:48 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Thu, 08 Mar 2007 08:23:48 -0500 X-Sasl-enc: X8NmRbRS/0Pm48c0Jo9vhjXztUbIc9ChtqkHv2tVemHf 1173360228 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 4BD2F1B7EE; Thu, 8 Mar 2007 08:23:48 -0500 (EST) Message-ID: <45F00E62.4020503@FreeBSD.org> Date: Thu, 08 Mar 2007 13:23:46 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: Alexandru Arion References: <1173273861.4982.8.camel@aarion> <45EF13CD.8020800@FreeBSD.org> <1173345342.4957.13.camel@aarion> <45EFF531.5080507@FreeBSD.org> <1173359952.4957.29.camel@aarion> In-Reply-To: <1173359952.4957.29.camel@aarion> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: SO_ACCEPTCONN equivalent X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2007 13:23:49 -0000 Alexandru Arion wrote: > Tried it on fresh install of 5.4: compiled the source locally, run, got > error "Protocol not available". Same code works on Linux. > > By replacing SO_ACCEPTCONN with SO_REUSEADDR, or any other option that > appears in the manual page for 5.4, the program works correctly. > > Bruce, is there something I'm missing? > There was a thread about this on a mailing list in the past from Robert Watson who was concerned introducing the option might introduce race conditions; please see the archives for this. If SO_ACCEPTCONN does not work for you, please consider submitting a regression test for it e.g. src/tools/regression/sockets/acceptconn so that someone can pick up on this. Thanks! BMS