On Tue, 19 Aug 2014 13:07:51 -0400 David wrote: DD> Hello, DD> I have been studying the code following function wrapper after function DD> wrapper down the snmp_send trail, trying to work out how the DD> netsnmp_request_list is involved to stop the listening for responses. I am DD> trying to keep the session open and listening for responses until a DD> timeout period so it will receive responses from any IP address. Any help DD> is very much appreciated. Thank you.
It looks like you need to set an option in the session to enable broadcast support. I haven't tested to see if this is for sending, receiving, or both. from snmp_api.c: #if defined(SO_BROADCAST) && defined(SOL_SOCKET) if ( in_session->flags & SNMP_FLAGS_UDP_BROADCAST) { int b = 1; int rc; rc = setsockopt(transport->sock, SOL_SOCKET, SO_BROADCAST, (char *)&b, sizeof(b)); ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders