python broadcast socket

Grant Edwards grante at
Thu Jun 30 02:20:28 CEST 2005

On 2005-06-29, Jp Calderone <exarkun at> wrote:
> On Thu, 30 Jun 2005 00:13:45 +0200, Irmen de Jong <irmen.nospam at> wrote:
>>Grant Edwards wrote:
>>> Under Linux, you need to be root to send a broadcase packet.
>>I don't think this is true.
> I think you're right.  I believe you just need to set the broadcast SOL_SOCKET option.

Ah. Right.  The problem I was remembering was sending a
broadcast packet using PF_PACKET/SOCK_RAW.  It's the PF_PACKET
that required root privlidges.  Sorry about that.

Grant Edwards                   grante             Yow!  ... I think I'd
                                  at               better go back to my
                                 DESK and toy with a few

More information about the Python-list mailing list