From owner-freebsd-net@FreeBSD.ORG Thu Mar 1 13:37:18 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 8D8B716A400; Thu, 1 Mar 2007 13:37:18 +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 6A37E13C474; Thu, 1 Mar 2007 13:37:18 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 543031F1ED3; Thu, 1 Mar 2007 08:37:18 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Thu, 01 Mar 2007 08:37:18 -0500 X-Sasl-enc: WcZhPIxIDHwY6mJgxhvncQo+CcV5fTlqlab8oyIgneQK 1172756238 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 D31791EC5; Thu, 1 Mar 2007 08:37:17 -0500 (EST) Message-ID: <45E6D70C.10104@FreeBSD.org> Date: Thu, 01 Mar 2007 13:37:16 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: Andre Oppermann References: <45C0CA5D.5090903@incunabulum.net> <45E6BEE0.2050307@FreeBSD.org> <45E6C22D.7060200@freebsd.org> In-Reply-To: <45E6C22D.7060200@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: net@FreeBSD.org 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, 01 Mar 2007 13:37:18 -0000 Andre Oppermann wrote: > > I have some WIP here too. I'll send it to you later this afternoon. > Thanks, I look forward to seeing it, re Issue #2 IP_SENDSRCADDR. Dealing with dhclient is a separate issue -- here, something like IP_SENDIF needs to be introduced, as we are truly in an 'ip unnumbered' situation -- ie the ifnet MAY not yet have been assigned an IPv4 address at all, and IP_SENDSRCADDR implies that you are source routing in the local stack by passing the address of a numbered interface I have however dealt with Issue #1 by committing a fix to ip_output() for the IP_ONESBCAST && SO_DONTROUTE case. This together with the fix you committed for ethernet next-hop resolution (thanks!) should mean that projects like OLSRD can stop using libnet and other hacks for sending 255.255.255.255 on FreeBSD. The original broadtest tool has now been cleaned up and put into the tree under src/tools/regression/netinet/ipbroadcast. Regards, BMS