From: Ben Greear <greearb@candelatech.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: EACCES sending UDP to broadcast address?
Date: Thu, 09 Apr 2015 18:14:39 -0700 [thread overview]
Message-ID: <552723FF.40705@candelatech.com> (raw)
In-Reply-To: <1428628362.25985.284.camel@edumazet-glaptop2.roam.corp.google.com>
On 04/09/2015 06:12 PM, Eric Dumazet wrote:
> On Thu, 2015-04-09 at 18:04 -0700, Ben Greear wrote:
>> 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?
>
> man 7 socket
>
> SO_BROADCAST
> Set or get the broadcast flag. When enabled, datagram
> sockets are allowed to send packets to a broadcast address. This option
> has no effect on stream-oriented
> sockets.
>
>
>
> root user still has to use this option.
Thanks, I'll go do that.
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2015-04-10 1:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 1:04 EACCES sending UDP to broadcast address? Ben Greear
2015-04-10 1:12 ` Eric Dumazet
2015-04-10 1:14 ` Ben Greear [this message]
2015-04-10 2:28 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552723FF.40705@candelatech.com \
--to=greearb@candelatech.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).