On Thu, 14 Apr 2005 17:01:27 +0100 Dave wrote: DS> On Thu, 2005-04-14 at 16:11, Robert Story wrote: DS> > The question is, what should the default behaviour be? DS> > Always delay the probe ... [or] allow a failed probe to DS> > successfully return, and set up to retry the probe when needed. DS> DS> Either of those two would be acceptable. DS> DS> At the moment, the library has the unfortunate behaviour DS> that you can't delay setting the SNMP version until after DS> opening the session, if you're talking to a v1-only agent. DS> The initial probe fails, so 'snmp_open' doesn't return a DS> session structure - despite the fact that the v3 information DS> wouldn't actually be needed anyway.
Doesn't setting SNMP_FLAGS_DONT_PROBE in the session flags work? That should prevent the probe and allow a valid session struct to be returned. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders