[Bug 587828] Re: Row creation in snmpTargetAddrTable fails in 64-bit version
Ulrik Forsgren
ulrik.forsgren at ericsson.com
Mon May 31 11:14:50 BST 2010
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
Server Team, which is subscribed to net-snmp in ubuntu.
More information about the Ubuntu-server-bugs
mailing list