Date: Mon, 30 Apr 2007 06:16:00 -0400 From: "David S. Madole" <david@madole.net> To: "'Abraham K. Mathen'" <akmathen@hotmail.com>, "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org> Subject: RE: Why can't I sendto() to 127.255.255.255 Message-ID: <a80879e0.1c78b10.1904fd43.30ad@madole.net>
next in thread | raw e-mail | index | archive | help
> 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 sy= stem and lo0 is not a broadcast-capable interface? lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 Note that there is no "BROADCAST" flag. Just a guess. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a80879e0.1c78b10.1904fd43.30ad>