From owner-freebsd-net@FreeBSD.ORG Mon Apr 30 10:12:27 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 5F69E16A403 for ; Mon, 30 Apr 2007 10:12:27 +0000 (UTC) (envelope-from akmathen@hotmail.com) Received: from bay0-omc1-s14.bay0.hotmail.com (bay0-omc1-s14.bay0.hotmail.com [65.54.246.86]) by mx1.freebsd.org (Postfix) with ESMTP id 4E20913C4B9 for ; Mon, 30 Apr 2007 10:12:27 +0000 (UTC) (envelope-from akmathen@hotmail.com) Received: from hotmail.com ([207.46.10.97]) by bay0-omc1-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 30 Apr 2007 03:00:27 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 30 Apr 2007 03:00:27 -0700 Message-ID: Received: from 207.46.10.123 by by121fd.bay121.hotmail.msn.com with HTTP; Mon, 30 Apr 2007 10:00:26 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-net@freebsd.org Date: Mon, 30 Apr 2007 10:00:26 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 30 Apr 2007 10:00:27.0015 (UTC) FILETIME=[609E7970:01C78B0E] Subject: Why can't I sendto() to 127.255.255.255 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, 30 Apr 2007 10:12:27 -0000 NOTE : A copy of this message was sent to freebsd-hackers also. Apologies for the separate mails. Hello freebsd-net, 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