Why can't I sendto() to 127.255.255.255
- From: "Abraham K. Mathen" <akmathen@xxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 10:00:26 +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
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Why can't I sendto() to 127.255.255.255
- From: Bruce M. Simpson
- Re: Why can't I sendto() to 127.255.255.255
- From: Vince
- Re: Why can't I sendto() to 127.255.255.255
- Prev by Date: Re: Firewall
- Next by Date: Current problem reports assigned to you
- Previous by thread: Re: kern/105943: Network stack may modify read-only mbuf chain copies
- Next by thread: Re: Why can't I sendto() to 127.255.255.255
- Index(es):