Off by one in counting the number of MIB entries.
This commit is contained in:
parent
8d9c733e4f
commit
d276ee6376
@ -183,7 +183,7 @@ ray_dumpinfo(char *iface)
|
||||
printf("%-26s\t", mib_strings[RAY_MIB_VERSION]);
|
||||
printf("%d\n", 3+version);
|
||||
|
||||
for (mib = RAY_MIB_NET_TYPE; mib < RAY_MIB_MAX; mib++) {
|
||||
for (mib = RAY_MIB_NET_TYPE; mib <= RAY_MIB_MAX; mib++) {
|
||||
|
||||
if ((mib_info[mib][0] & version) == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user