Re: Detect SNMP packet

2008-01-18 Thread Devvrat Tripathi
> > > The simplest approach is probably to insert code into the routine > netsnmp_agent_check_parse() (see 'agent/snmp_agent.c'). > This is called after the request has been received and parsed, > but before it is processed. > > Within this routine, you could extract the context of the request,

Re: Detect SNMP packet

2008-01-16 Thread Devvrat Tripathi
On Jan 17, 2008 4:12 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > > > What exactly are you actually trying to do? > > I would like to get the responses for these pdu's from different snmp agents located at some other place depending on the context supplied with the pdu. Now the problem is that i d

Re: Detect SNMP packet

2008-01-16 Thread Devvrat Tripathi
On Jan 16, 2008 11:03 PM, Robert Story <[EMAIL PROTECTED]> wrote: > On Sat, 5 Jan 2008 14:04:23 +0530 (IST) Romanch wrote: > R> how to detect an arrival of an SNMP Packet on a system or modify > them... > > Listen for packets on port 161. > Is there any way to get the PDU's after the packets get