permission denied when sending broadcast UDP...

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Nick Estes
日付:  
題目: 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