> I have difficult in understanding the code of the net-snmp .
> Could you give me a hand?

What in particular?
It's much easier to offer advice or assistance when you've
got a specific query.   Something general like "flow of the code"
is very difficult to respond to.   You don't even say whether
you mean the client tools or the agents.

Assuming you mean the agent, then the overall flow is
something like:

        receive() loop          (snmpd.c)
         snmp_read()
          [library parses the packet and calls]
           handle_snmp_packet   (snmp_agent.c)
            netsnmp_handle_request
             handle_pdu
              handle_var_requests
               netsnmp_call_handlers

which takes you into the relevant handler chain for a given 
MIB object - see 'agent_handler.c', 'helpers/*' and 'mibgroup/*/*'

That should be enough to get you started.

Dave



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to