Hi again,

I found the issue, see below:

On Sun, July 20, 2008 18:18, Brice Figureau wrote:
> [snipped the whole trace]
> trace: agentx_parse_oid(): mibgroup/agentx/protocol.c, 1205:
> dumpv_recv:           OID: SNMPv2-SMI::enterprises.20267.200.1.6.0
> dumpx_recv:          00 00 00 00
> dumpv_recv:            Integer:       0 (0x00)
> dumpx_recv:          E8 83 84 B8
> dumpv_recv:            Integer:       3095692264 (0xB88483E8)
> trace: agentx_parse_varbind(): mibgroup/agentx/protocol.c, 1344:
> dumph_recv:         VarBind:
> trace: agentx_parse_varbind(): mibgroup/agentx/protocol.c, 1345:

agentx_parse_varbind was increasing the buffer pointer of 2 * sizeof(long)
after decoding a counter64. This is incorrect since on amd64 sizeof(long)
is 8 bytes and not 4 bytes. It was just then jumping over the next
varbind.

I attached a patch to fix this issue, which I'll also register on
sourceforge.

-- 
Brice Figureau

Attachment: fix-qgentx-protocol-for-64bit.patch
Description: Binary data

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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