From owner-freebsd-net@FreeBSD.ORG Thu Mar 15 23:59:26 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2EB7106566C for ; Thu, 15 Mar 2012 23:59:26 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id A27588FC08 for ; Thu, 15 Mar 2012 23:59:26 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q2FNx8Z7048426 for ; Thu, 15 Mar 2012 16:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1331855949; bh=0/SRcz1GLSs9Zlpf+HYVyEqe925zRpqgy6Rhwc7KvQo=; h=Subject:From:Reply-To:To:Content-Type:Date:Message-ID: Mime-Version:Content-Transfer-Encoding; b=YoTKKQz3qsAksrk5Cd+V4wr/g9SklWHua0Q99wvDqA5jzWG0m3Dt9VpAhp0bUVyDc UlUg4bMKlKtve1TwL9RZESAHwhjWERW3rfUMOSZ+B7A7CYhStMjyC8O0eQ08qqn4oQ DTIoyWJsWSErZsDNIhi3aOhECGRFihv6Ec/Urs50= From: Sean Bruno To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset="UTF-8" Date: Thu, 15 Mar 2012 16:59:08 -0700 Message-ID: <1331855948.3317.17.camel@powernoodle-l7.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: bind error when using SO_REUSEPORT(implies SO_REUSEADDR) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 23:59:27 -0000 Hey, I just found a bind bug ticket in my queue about bind. I noted that on stable/6 stable/7 stable/9 & head the referenced code "fails". It seems that this is a problem, but I have no idea if its a real problem or not. Our devs think it is. Anyway, here is a code snippet to show the failure in bind. On linux/solaris this does not fail. http://people.freebsd.org/~sbruno/bind_test.c simple compile with gcc -o test test.c and run as normal user. Sean