python broadcast socket

Grant Edwards grante at visi.com
Wed Jun 29 20:20:28 EDT 2005


On 2005-06-29, Jp Calderone <exarkun at divmod.com> wrote:
> On Thu, 30 Jun 2005 00:13:45 +0200, Irmen de Jong <irmen.nospam at xs4all.nl> 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
                               visi.com            DESK and toy with a few
                                                   commonMISAPPREHENSIONS...



More information about the Python-list mailing list