Robert, tanks so far. But, after i checked it with the debugger, i think you
are not absolutely correct. 

snmp_open() is sending a probe-PDU because its a snmpv3-session.  Or do i
have to set this engineid before i call snmp_open()?

Kind Regards,

Sven


> On Tue, 7 Dec 2004 15:21:04 +0100 (MET) Sven wrote:
> SJ> i have one question to snmp_open(session). Does snmp_open send some
> traffic
> SJ> or not?
> 
> No. It only initializes the default parameters in the session structure.
> 
> SJ> I know, that snmp is working with udp and udp is working
> connectionless.
> SJ> But, when i shut down my agent and start my application, than
> SJ> snmp_open(session) fails. But how could snmp_open fail, when it isn't
> SJ> sending any information?
> 
> Try stepping into the function with a debugger, to see where it fails..
> 
> SJ> > session->peername = strdup("localhost");
> SJ>  > session->remote_port = 31111;
> 
> Note that remote_port is deprecated, and won't work. You need to do this:
> 
>       session->peername = strdup("localhost:31111");
> 
> -- 
> 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://productguide.itmanagersjournal.com/
> _______________________________________________
> Net-snmp-coders mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 

-- 
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum superg�nstigen Komplett-Preis!


-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to