Hallo Dave,
i have one question to snmp_open(session). Does snmp_open send some traffic
or not?
I know, that snmp is working with udp and udp is working connectionless.
But, when i shut down my agent and start my application, than
snmp_open(session) fails. But how could snmp_open fail, when it isn't
sending any information?
Could you help me, please?
Kind Regards,
Sven
PS: please see below, what you wrote in an earlier message
> session->peername = strdup("localhost");
> session->remote_port = 31111;
>
> and opened a snmp session with
>
> snmp_open(session);
Is this a client-side management application, or the agent?
It feels like client-side code, and would set up an SNMP session
structure to use the UDP transport. This doesn"t actually open a
connection to the remote destination - UDP doesn"t work that way.
This information is simply held internal to the application, ready
for when it needs to send a request. It won"t affect the actual
network configuration of the underlying system. So it wouldn"t
show up in the output of netstat.
> netstat is not showing this with "Foreign Address" as "0.0.0.0:*".
> But I don"t want to open it for all.
I"m not convinced that entry is actually relevant to your application.
Certainly not if it"s client-side app.
If this is an agent, then you"ll have to restrict access in a
different way (e.g. using "libwrap" or kernel-level firewall setup).
Dave
--
GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++
-------------------------------------------------------
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