On Thu, 2005-11-17 at 10:49 +0530, aakansha rajvi wrote:
> Could anyone pls tell me where the control goes(ie., to which C file)
> first in the net-snmp agent when "snmpget" is executed?
The main flow of control is something like:
agent/snmpd.c:receive()
snmplib/snmp_api.c:snmp_read()
agent/snmp_agent.c:handle_snmp_packet()
agent/snmp_agent.c:handle_request()
agent/snmp_agent.c:handle_pdu()
agent/snmp_agent.c:handle_var_requests()
agent/agent_handler.c:netsnmp_call_handlers()
>From there, control passes to the various helper handlers
relevant for the OIDs involved. That's a gross simplification,
obviously, but should give you the basic idea.
> Is there any URL where I can get detailed description on this?
No.
(Unless you'd like to write one....)
Dave
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders