On 22/08/06, Felipe openglx <[EMAIL PROTECTED]> wrote:
An incredibly good analysis - you can report problems again! :-)
> (gdb) print snmptrap_oid
> $15 = {1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0}
> (gdb) print snmptrap_oid_len
> $16 = 0
>
> Hmmm... why is snmptrap_oid_len equal 0 ? Shouldn't it be the size of
> OID fields of snmptrap_oid?
Yup.
Checking on my test system, snmptrap_oid has the same value as yours,
but snmptrap_oid_len is 11 (as expected).
Very strange.
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....
Dave
-------------------------------------------------------------------------
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