RE: Why can't I sendto() to 127.255.255.255
- From: "David S. Madole" <david@xxxxxxxxxx>
- Date: Mon, 30 Apr 2007 06:16:00 -0400
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 system and lo0 is not a broadcast-capable interface?
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
Note that there is no "BROADCAST" flag. Just a guess.
David
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Why can't I sendto() to 127.255.255.255
- Next by Date: Re: msleep() on recursivly locked mutexes
- Previous by thread: Why can't I sendto() to 127.255.255.255
- Index(es):