Hello,

On 8/23/06, Dave Shield <[EMAIL PROTECTED]> wrote:
> On 22/08/06, Felipe openglx <[EMAIL PROTECTED]> wrote:
>     An incredibly good analysis - you can report problems again! :-)

Thank you. :)


> Try putting a breakpoint in 'init_traps' and check whether
> snmptrap_oid_len is getting initialised.  (And whether this happens
> *before* the first call to netsnmp_send_trap).
> I can't see why it wouldn't but....

Got the problem here. My trap was called 'trap', and thus it
initialization function was: 'init_trap'. So when the compiler linked
both pieces of code (my agents and net-snmp code), somehow my
init_trap had priority over yours. It came that net-snmp's init_trap
was never called (I set breakpoints to agent_trap.c:145 but they were
never reached because functions wasn't called after all). As it didn't
call the agent_trap.c's init_trap(), other *_len weren't
initializated, being 0 always.

I renamed by 'trap' to 'dlsw_trap' (because that's what it handles,
after all), and now everything is working as expected. It makes me
want to say: "Just remember, kids, don't name your functions with
other taken names".

Thanks, net-snmp-coders, and thank you Dave.

Yours,
Felipe

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to