Thanks for your inputs.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Shield
Sent: Thursday, September 23, 2004 4:10 AM
To: Will Chen
Cc: [EMAIL PROTECTED]
Subject: Re: SNMP Trap Decode 


> I downloaded the source code.  Would you kindly point me which source
> files can lead me to decoding?

Note that the packet decoding is handled in the main SNMP library
(mostly in 'snmplib/snmp_api.c') and this is quite a complicated
process - not helped by the gradual accumulation of the code to
handle it.


I'd strongly suggest that you *don't* try to follow the decoding
process, and just leave the library to handle that.
   Instead, concentrate on working with the 'netsnmp_pdu' structure
that is produced.   This should include the contents of the request
in a much more useable format.

In particular, the various netsnmp_trapd_handler routines in the
file 'snmptrapd_handlers.c' are probably a good place to start.
If the "print_handler" doesn't do quite what you want, it should
act as a reasonably close template.


Dave



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to