From owner-freebsd-net@FreeBSD.ORG Thu Mar 8 15:57:31 2007 Return-Path: X-Original-To: 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 B352116A400 for ; Thu, 8 Mar 2007 15:57:31 +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 8867713C461 for ; Thu, 8 Mar 2007 15:57:31 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id E35EE1F55AB for ; Thu, 8 Mar 2007 10:57:30 -0500 (EST) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by out1.internal (MEProxy); Thu, 08 Mar 2007 10:57:30 -0500 X-Sasl-enc: bOAv+TKFpGlU4KmtllCuk/HQ1ncwuWslUpFNAdTkklhy 1173369451 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 E59FB18CF0 for ; Thu, 8 Mar 2007 10:57:30 -0500 (EST) Message-ID: <45F03269.7050705@FreeBSD.org> Date: Thu, 08 Mar 2007 15:57:29 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: net@FreeBSD.org References: <45C0CA5D.5090903@incunabulum.net> <45E6BEE0.2050307@FreeBSD.org> <45E6C22D.7060200@freebsd.org> <45E6D70C.10104@FreeBSD.org> <45EEB086.3050409@FreeBSD.org> In-Reply-To: <45EEB086.3050409@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Inconsistencies with IP_ONESBCAST and/or IP_SENDSRCADDR 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 15:57:31 -0000 Bruce M. Simpson wrote: > I have just committed a change in bms_netdev which enforces strict > and better defined semantics for the IP_SENDSRCADDR option in > udp_output(). > I have just committed this change in -CURRENT. After testing it with 'ipbroadcast', it looks good apart from sockets which are already laddr bound. This is forbidden by in_pcbbind_setup(). The same caveats apply -- it might collide with an already bound inpcb. It is OK for code to choose any source address configured on the box as this will be needed to override source selection come ECMP. If someone else steps up to make it work when socket is laddr bound, well and cool. I now consider it 'fit for purpose'. I'm satisfied with this for now. Regards, BMS