Re: sendmsg and broadcast addresses

From: Christian E. Hopps (chopps@nexthop.com)
Date: Thu Nov 30 2000 - 01:44:28 EST


On Thu, Nov 30, 2000 at 12:22:13AM -0500, Christian E. Hopps wrote:
> I'm having difficulty sending an IP_HDRINC IP on a raw IP socket
> to a link broadcast address (e.g. 10.255.255.255). I'm receiving
> an EACCES error from sendmsg. The messages are sent with DONTROUTE
> set.

Someone pointed out that I needed to set SO_BROADCAST, which I wasn't.
This fixes the problem I was having, but I thought I would send a note
to the list that this is not required in any of the BSDs. Since
I believe compatibility is a goal perhaps this restriction should be
removed.

Thanks,
Chris.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org



This archive was generated by hypermail 2b29 : Thu Nov 30 2000 - 21:00:29 EST