permission denied when sending broadcast UDP...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Nick Estes
Date:  
Subject: 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