Re: Why can't I sendto() to 127.255.255.255
- From: Vince <jhary@xxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 12:59:13 +0100
Abraham K. Mathen wrote:
NOTE : A copy of this message was sent to freebsd-hackers also.As far as I am aware the only RFC's that define the 127.0.0.0/8 block
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?
----------------------------------------------------------
are rfc3330 which states,
127.0.0.0/8 - This block is assigned for use as the Internet host
loopback address. A datagram sent by a higher level protocol to an
address anywhere within this block should loop back inside the host.
This is ordinarily implemented using only 127.0.0.1/32 for loopback,
but no addresses within this block should ever appear on any network
anywhere
and rfc1122 which says:
{ 127, <any> }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
I would interpret this as 127.0.0.0/8 are all loopback host addresses,
but I'd be happy to be corrected.
Vince
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"
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- References:
- Why can't I sendto() to 127.255.255.255
- From: Abraham K. Mathen
- Why can't I sendto() to 127.255.255.255
- Prev by Date: Re: Firewall
- Next by Date: Re: Why can't I sendto() to 127.255.255.255
- Previous by thread: Why can't I sendto() to 127.255.255.255
- Next by thread: Re: Why can't I sendto() to 127.255.255.255
- Index(es):
Relevant Pages
- ath0 pain on visiting network
... ping: sendto: No route to host ... (freebsd-current) - Re: setsockopt and IP_MULTICAST_LOOP
... Each host would need to be listening on each of ... the other hosts multicast
groups and only sending out on their own group. ... to disable receiving the multicast messages
on the loopback". ... receive on your listeners that originate from the same host,
... (microsoft.public.windowsce.embedded.vc) - cant ssh back into 10.242; host seen as Down
... PING 10.242: 56 data bytes ... ping: sendto: Host is down ...
10 packets transmitted, 0 packets received, 100% packet loss ... (freebsd-questions) - Re: Strange pings from 127.0.0.1
... ICMP traffic, all sourced from the loopback, but destined to several ... I'm
fairly certain that I've got a compromised host, ... >> pen testing experience in
our state of the art hacking lab. ... >> of an Ethical Hacker to better assess
the security of your organization. ... (Security-Basics) - Re: Cisco VPN client gives the following status: Not Connected
... which are private but routable within a private network. ... private
addresses such as Net 10/8, but not loopback ... address anywhere within this block should
loop back inside the host. ... (comp.dcom.sys.cisco)