[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150409.222843.586154432199987277.davem@davemloft.net>
Date: Thu, 09 Apr 2015 22:28:43 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: greearb@...delatech.com
Cc: netdev@...r.kernel.org
Subject: Re: EACCES sending UDP to broadcast address?
From: Ben Greear <greearb@...delatech.com>
Date: Thu, 09 Apr 2015 18:04:44 -0700
> I'm running as root user, 4.0-rc6 + hack kernel.
>
> User-space app is (or should be) trying to send a UDP frame
> to 255.255.255.255 destination.
>
> I am getting EACCESS from sendmmsg.
>
> Is this expected? Is there something even more special than root these
> days?
You can't send to broadcast addresses without setting the
SOCK_BROADCAST socket option.
I didn't know the answer to this, it took me 10 seconds of grepping
around under net/ipv4 to figure it out. You could have done this
too.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists