A corretion to data sizes above, the should be the otherway around. var_val_len is reported as 8 sizeof(int) is 4 in a 64-bit system
And 8 != 4, which means SNMP_ERR_WRONGLENGTH will be returned. In the case sizeof(int) should be replaced with 4 and the if statement should look like: if (var_val_len != 8) { or possibly if (var_val_len != sizeof(long)) { This has been reported earlier for net-snmp: http://sourceforge.net/tracker/index.php?func=detail&aid=2972579&group_id=12694&atid=112694 ** Bug watch added: SourceForge.net Tracker #2972579 http://sourceforge.net/support/tracker.php?aid=2972579 -- Row creation in snmpTargetAddrTable fails in 64-bit version https://bugs.launchpad.net/bugs/587828 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs