On Tue, 2010-10-19 at 10:30 +0530, Renjith R. V. wrote: > Hello Team, > > I have a scenario in which I need to collect traps from some devices in > local network and forward the same (after adding some more objects) to > some selected destinations. > As part of a feasibility to do the same, I have referred snmptrapd > program to receive traps and snmptrap program to forward traps. > I have combined both the mentioned sample programs and called snmptrap > main from syslog_handler() of snmptrapd. I have passed the pdu available > in syslog_handler to snmptrap main.
Snmptrapd already have support for trap forwarding, see the function forward_handler in apps/snmptrapd_handlers.c, so I think you should just copy that and add your objects. /MF ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
