From owner-freebsd-net@FreeBSD.ORG Mon Jan 8 09:32:44 2007 Return-Path: X-Original-To: freebsd-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 1F1D416A40F; Mon, 8 Jan 2007 09:32:44 +0000 (UTC) (envelope-from nagao@iij.ad.jp) Received: from otm-mgo00.iij.ad.jp (otm-mgo00.iij.ad.jp [210.138.20.174]) by mx1.freebsd.org (Postfix) with ESMTP id 44A9B13C458; Mon, 8 Jan 2007 09:32:42 +0000 (UTC) (envelope-from nagao@iij.ad.jp) Received: OTM-MO(otm-mgo00) id l088ruUK085932; Mon, 8 Jan 2007 17:53:56 +0900 (JST) DKIM-Signature: a=rsa-sha1; c=relaxed/simple; d=iij.ad.jp; s=omgo0; t=1168246436; bh=DAiHPXb0RMZODDbKThN52IsAOJg=; h=Received:Received: Date:Message-Id:To:Cc:Subject:From:In-Reply-To:References:X-Mailer: Mime-Version:Content-Type:Content-Transfer-Encoding; b=MYeZUjeU4WS9 AHzS1cMApMkdWcUm0ctWhOFtLpiapyuFezW3lXl7JP5kBGzlxqWcJIXXhNCVrgQs9Aq ALTv3qim1L9rI79fMxfV+W7y/31/tiVcvumWyfxOxX7Q31G7/ALZKp3lrnXywSXpqXd +4wNlIQd75vOgDabKp0yxwpMQ= Received: OTM-MIX(otm-mix00) id l088rtHh039057; Mon, 8 Jan 2007 17:53:55 +0900 (JST) Received: from localhost (kabosu.iij.ad.jp [192.168.186.148]) by rsmtp.iij.ad.jp (OTM-MR/rsmtp01) id l088rsco010375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Jan 2007 17:53:55 +0900 (JST) Date: Mon, 08 Jan 2007 17:53:54 +0900 (JST) Message-Id: <20070108.175354.26933985.nagao@iij.ad.jp> To: freebsd-net@freebsd.org From: Tadaaki Nagao In-Reply-To: <20070105162022.GA1503@twilight.mbslab.kiae.ru> References: <459D4D88.2030708@delphij.net> <20070105113442.GH37482@codelabs.ru> <20070105162022.GA1503@twilight.mbslab.kiae.ru> X-Mailer: Mew version 5.2rc3 on Emacs 22.0.50 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: delphij@delphij.net, andre@FreeBSD.org Subject: Re: Different behavior of ping'ing INADDR_BROADCAST? 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: Mon, 08 Jan 2007 09:32:44 -0000 Hi, > > When FBSD is pinging 0xffffffff it does not use the Ethernet broadcasts, > > when the link-level destination MAC is set to 0xffffffffffff, using some > > 'known MAC' instead. For the network broadcast address -- it does use > > link-level broadcasts. This seems to be the same problem as kern/99558: "FreeBSD 6.1 can't send packets to INADDR_BROADCAST". Maybe andre has some thoughts on how to fix this issue? (I'm CC'ing him.) > > For me the 'known MAC' is that of our border router that serves as > > the default destination. And my box doing the ARP request for the > > precisely the IP of the router before pinging 255.255.255.255. You can > > try to empty your ARP table and then ping 255.255.255.255 watching > > for the ARP requests and the link-level header of the ICMP packets. > > OK, I've found that in order to ping undirected broadcast address > one should add some functionality to the 'ping' utility. It seems to me from the PR above, that before patching `ping', ip_output.c should receive some sort of fix in handling INADDR_BROADCAST. -- Tadaaki Nagao Applied Research and Development Department, Internet Initiative Japan Inc.