[Bug 587828] [NEW] Row creation in snmpTargetAddrTable fails in 64-bit version

2010-05-31 Thread Ulrik Forsgren
Public bug reported: When trying to create a row in the snmpTargetAddrTable in a 64-bit system the attempt fails with this error: ddsk...@ddskufo-laptop:~/Skrivbord/SNMP RFC'er/snmpV2$ snmptable localhost snmpTargetAddrTable SNMP-TARGET-MIB::snmpTargetAddrTable: No entries

[Bug 587828] Re: Row creation in snmpTargetAddrTable fails in 64-bit version

2010-05-31 Thread Ulrik Forsgren
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

[Bug 587828] [NEW] Row creation in snmpTargetAddrTable fails in 64-bit version

2010-05-31 Thread Ulrik Forsgren
Public bug reported: When trying to create a row in the snmpTargetAddrTable in a 64-bit system the attempt fails with this error: ddsk...@ddskufo-laptop:~/Skrivbord/SNMP RFC'er/snmpV2$ snmptable localhost snmpTargetAddrTable SNMP-TARGET-MIB::snmpTargetAddrTable: No entries

[Bug 587828] Re: Row creation in snmpTargetAddrTable fails in 64-bit version

2010-05-31 Thread Ulrik Forsgren
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