On Thu, 24 Mar 2005 14:15:57 -0700 Nath, wrote:
NS> I need the ip address and port number of the requester i.e. the machine
NS> from where someone is doing set for an object. Is there any API which
NS> will provide the IP and Port? 

No, that information is not tracked once authentication has completed.
Additionally, not all transports provide that information.

NS> Now, how to get the IP_ADDR and PORT of the requester machine that sent
NS> the snmpset request? 
NS> 
NS> Could you please let me know if I need to look at any particular code?

You would have to modify the agent to get the information from the transport
functions. I suggest firing up a debugger and stepping throught the code in the
receive() function.

-- 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to