From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 30 10:05:59 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 3573216A400 for ; Mon, 30 Apr 2007 10:05:59 +0000 (UTC) (envelope-from akmathen@hotmail.com) Received: from bay0-omc2-s26.bay0.hotmail.com (bay0-omc2-s26.bay0.hotmail.com [65.54.246.162]) by mx1.freebsd.org (Postfix) with ESMTP id 23EE013C46E for ; Mon, 30 Apr 2007 10:05:59 +0000 (UTC) (envelope-from akmathen@hotmail.com) Received: from hotmail.com ([207.46.10.83]) by bay0-omc2-s26.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 30 Apr 2007 02:53:58 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 30 Apr 2007 02:53:58 -0700 Message-ID: Received: from 207.46.10.123 by by121fd.bay121.hotmail.msn.com with HTTP; Mon, 30 Apr 2007 09:53:57 GMT X-Originating-IP: [15.219.201.70] X-Originating-Email: [akmathen@hotmail.com] X-Sender: akmathen@hotmail.com From: "Abraham K. Mathen" To: freebsd-hackers@freebsd.org Date: Mon, 30 Apr 2007 09:53:57 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 30 Apr 2007 09:53:58.0916 (UTC) FILETIME=[794B4440:01C78B0D] Subject: 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:05:59 -0000 Hello freebsd-hackers, 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. After examining - various RFC's, - source code under /usr/src/sys/netinet/ and - archives of freebsd-hackers & freebsd-net, I have not been able to determine the reason. Is it possible to successfully sendto() on a UDP socket with 127.255.255.255 as the destination address? If yes, how can that be done. Specific questions : ---------------------------------------------------------- - Is it correct to understand that 127.255.255.255 is the directed network broadcast address for net 127? If yes, which RFC specifies that? - If not, is 127.255.255.255 considered to be a host address? If yes, which RFC specifies that? ---------------------------------------------------------- Could you please help me understand this? sincerely Mathen (Abraham K. Mathen) _________________________________________________________________ Mega Airfare Sale. Click here Now. http://ss1.richmedia.in/recurl.asp?pid=18