permission denied when sending broadcast UDP...

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Nick Estes
Dátum:  
Tárgy: permission denied when sending broadcast UDP...
I'm writing a little program in perl to configure netgear's me102 access
point, and I'm having a problem discovering them on the network. The way
to do it is with a broadcast snmp request, but I get a permission denied.
(it's not a root thing, root has the same problem)

I believe it is because the udp socket needs to have the SO_BROADCAST flag
turned on, so I edited the Net::SNMP module to call setsockopt with that
flag, but it didn't seem to cure the problem. Any ideas?

    --Nick