From owner-freebsd-arch@FreeBSD.ORG Wed May 27 05:45:38 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF17F106564A for ; Wed, 27 May 2009 05:45:38 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 855368FC0A for ; Wed, 27 May 2009 05:45:38 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so2433639yxb.13 for ; Tue, 26 May 2009 22:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=gD/Uq3xp0RBb7WH/yuSVh8CHIFSQQcWPAvSIcYh3i9w=; b=S7Ym27QEbG0aTchDYmBEm56ipYMxwTx5f9peAdvYsDcEedL0SOVyrB5LscTTJw/4Cs MD8S4+6bzMTnpKY617i2Bsl+EApnLm9FJINXtz7I6jX5iK8F7GQ3P9QK5NN7hAhEvFEH SCkRb1rdHtgSwki50NnFQh/caHE+QlNaonWz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=iG6cNkDwAhZIqMrcMY+w5kBxdgVydjoKPN5eS2WPfzSfIedbu80cg5CbURq1A/07ZU pf84xrcA9701eZcz7M0dmTH86gcDK0pZRCwFxUMhketfuTqUIHZ29CH36kLeF6wCtPpL pXmprfUIcB9SCngRba2xhMvRM/UXCc4WwmMQ0= MIME-Version: 1.0 Sender: mat.macy@gmail.com Received: by 10.100.198.3 with SMTP id v3mr10760364anf.56.1243401452808; Tue, 26 May 2009 22:17:32 -0700 (PDT) In-Reply-To: <20090526135547.GE1491@garage.freebsd.pl> References: <20090526135547.GE1491@garage.freebsd.pl> Date: Tue, 26 May 2009 22:17:32 -0700 X-Google-Sender-Auth: 3c83f5966dbec8c8 Message-ID: <3c1674c90905262217k7a75b73fsab25c2ef93993e18@mail.gmail.com> From: Kip Macy To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: adrian@freebsd.org, trasz@freebsd.org, julian@elischer.org, freebsd-arch@freebsd.org Subject: Re: IP_NONLOCALOK improvements. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 05:45:39 -0000 On Tue, May 26, 2009 at 6:55 AM, Pawel Jakub Dawidek wrote: > Now that we have IP_NONLOCALOK IP socket option (which is something I > need a lot for my company's stuff) I started to hack on it a bit. > > OpenBSD has SO_BINDANY SOL_SOCKET option for some time now. So first of > all I wanted to do the same for FreeBSD. Unfortunately we ran out of > space in so_options - it is u_short and all possible values are already > taken. As a side note there is SO_NO_DDP option that is used only in > cxgb driver and nowhere else. This seems like a waste of very important > bit (sonner or later someone will need yet another socket option). Wouldn't now (before 8.0) be a good time to expand it beyond 16 bits rather than artificially restricting ourselves?