How to send broadcast with net-snmp 5.4.1.2

"Xia, Arandar" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <57B55E659FD0974E93C0ECBE79DF731C387AEEE2CF@SGPAPHQ-EXSCC02.dc01.fujixerox.net>
Dear All,

I am using net-snmp-5.4.1.2 and I want to develop an application for sending broadcast.
The code is like:

struct snmp_session sess_template;
snmp_sess_init(&sess_template);
...
sess_template.peername  = strdup("255.255.255.255");
...
sess_template.callback  = asynch_response;
...

It fails with "Failure in sendto".
Is it possible for 5.4.1.2 to send UDPv4 broadcast and how?

I also found that path 700681 can enable settings of UDP broadcast on an SNMP session with SNMP_FLAGS_UDP_BROADCAST.
Where can I find the corresponding path against 5.4.1.2?

Thanks!

// Zeyi
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.