Hi all,
I am using net-snmp-5.4.1.1 package. I used snmpvacm to create a
view for an oid .1.3.6.1.4.1.9998.1.2.1, i.e.
snmpvacm -v1 -c public localhost createview myview
.1.3.6.1.4.1.9998.1.2.1 ff
I am getting the error Inconsistent name(the object cannot be
created).
When i browsed the code, i found a check in the code on (oidindex >
255). This check is also applicable when oid is of type ulong. The
check is in the file vacm_vars.c and the checking code is . . .
for (i = 0; i < subtreeL; i++) {
if (oidIndex[i + viewNameL + 1] > 255) {
free(*viewName);
free(*subtree);
return SNMP_ERR_INCONSISTENTNAME;
}
subtree[0][i] = (oid) oidIndex[i + viewNameL + 1];
}
If i comment the above code and recompile the net-snmp package, snmpvacm
works fine for oidindex > 255.
Please provide your thoughts on above.
Regards,
Varun
-------------------------------------------------------------------------
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-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders