From owner-freebsd-net@freebsd.org  Wed Aug 17 08:32:08 2016
Return-Path: <owner-freebsd-net@freebsd.org>
Delivered-To: freebsd-net@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id B2FBABBCD2A
 for <freebsd-net@mailman.ysv.freebsd.org>;
 Wed, 17 Aug 2016 08:32:08 +0000 (UTC) (envelope-from ulric@siag.nu)
Received: from smtp.outgoing.loopia.se (smtp.outgoing.loopia.se [194.9.95.112])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 6EC3C1E35
 for <freebsd-net@freebsd.org>; Wed, 17 Aug 2016 08:32:07 +0000 (UTC)
 (envelope-from ulric@siag.nu)
Received: from s554.loopia.se (localhost [127.0.0.1])
 by s554.loopia.se (Postfix) with ESMTP id D289B194D46D
 for <freebsd-net@freebsd.org>; Wed, 17 Aug 2016 10:26:12 +0200 (CEST)
Received: from s498.loopia.se (unknown [172.21.200.96])
 by s554.loopia.se (Postfix) with ESMTP id A120994B398
 for <freebsd-net@freebsd.org>; Wed, 17 Aug 2016 10:26:12 +0200 (CEST)
Received: from s404.loopia.se (unknown [172.21.200.105])
 by s498.loopia.se (Postfix) with ESMTP id 9F6EF46174B
 for <freebsd-net@freebsd.org>; Wed, 17 Aug 2016 10:26:12 +0200 (CEST)
X-Virus-Scanned: amavisd-new at amavis.loopia.se
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2
 tests=[ALL_TRUSTED=-1] autolearn=disabled
Received: from s499.loopia.se ([172.21.200.105])
 by s404.loopia.se (s404.loopia.se [172.21.200.134]) (amavisd-new, port 10024)
 with LMTP id R4v3MYBGo1lF for <freebsd-net@freebsd.org>;
 Wed, 17 Aug 2016 10:26:12 +0200 (CEST)
Received: from [10.0.0.9] (217-208-192-55-no234.tbcn.telia.com
 [217.208.192.55]) (Authenticated sender: ulric@siag.nu)
 by s499.loopia.se (Postfix) with ESMTPSA id 524631362F6D
 for <freebsd-net@freebsd.org>; Wed, 17 Aug 2016 10:26:12 +0200 (CEST)
X-Loopia-Auth: user
X-Loopia-Originating-IP: 217.208.192.55
X-Loopia-User: ulric@siag.nu
Subject: Re: SO_BINDANY in FreeBSD 10.3
To: freebsd-net@freebsd.org
References: <f71feeb8-1c9c-6ca3-aa92-105e0d9bf2af@webmail.sub.ru>
From: Ulric Eriksson <ulric@siag.nu>
Message-ID: <248e03ad-fac5-e55e-7784-58b387d55172@siag.nu>
Date: Wed, 17 Aug 2016 10:26:06 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <f71feeb8-1c9c-6ca3-aa92-105e0d9bf2af@webmail.sub.ru>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Aug 2016 08:32:08 -0000



Den 2016-08-12 kl. 14:00, skrev Alex Povolotsky:
> Hello
>
> Is SO_BINDANY supported in FreeBSD 10.3? If not, do any patches exists?

It is indeed. See the source to Pen for an example. File server.c, lines 
262ff.

https://github.com/UlricE/pen/blob/master/server.c

Ulric