From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 30 10:32:31 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C732616A400 for ; Mon, 30 Apr 2007 10:32:31 +0000 (UTC) (envelope-from david@madole.net) Received: from d.omd3.com (mx1.omd3.com [69.90.174.41]) by mx1.freebsd.org (Postfix) with ESMTP id A775113C455 for ; Mon, 30 Apr 2007 10:32:31 +0000 (UTC) (envelope-from david@madole.net) Received: from [66.212.193.19] (helo=david) by d.omd3.com with esmtpa (Exim 4.54) id 1HiSw2-000IRC-Hx; Mon, 30 Apr 2007 06:16:46 -0400 Date: Mon, 30 Apr 2007 06:16:00 -0400 From: "David S. Madole" To: "'Abraham K. Mathen'" , "'freebsd-hackers@freebsd.org'" Message-ID: X-Priority: 3 Organization: Optimized Micro Devices X-Mailer: Bynari Insight Connector 3.1.3-0410179 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: Subject: RE: Why can't I sendto() to 127.255.255.255 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2007 10:32:31 -0000 > From: Abraham K. Mathen on Monday, April 30, 2007 5:54 AM > > I wrote a short program (on FreeBSD 6.0), that attempts > to call sendto() on a UDP socket, with 127.255.255.255 as > the destination address. It failed - with errno 49 (EADDRNOTAVAIL). > Setting SO_BROADCAST and IP_ONESBCAST did not help. Perhaps because the matched route for that address points to lo0 on your sy= stem and lo0 is not a broadcast-capable interface? lo0: flags=3D8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 Note that there is no "BROADCAST" flag. Just a guess. David