On 07/07/07, Thomas Anders <[EMAIL PROTECTED]> wrote:
> This commit broke V5-2-patches on Linux:
>
> agent/mibgroup/if-mib/data_access/interface_linux.c:165: error:
> 'stats' undeclared (first use in this function)
How about the following (untested) patch instead?
--- interface_linux.c (revision 16604)
+++ interface_linux.c (working copy)
@@ -162,11 +162,6 @@
}
}
- if ((*stats == 'N') &&
- (0 == strncmp(stats, "No statistics available",
- sizeof("No statistics available"))))
- return -1;
-
/*
* The rest of the file provides the statistics for each interface.
* Read in each line in turn, isolate the interface name
@@ -186,6 +181,11 @@
"interface data format error 1, line ==|%s|\n", line);
continue;
}
+ if ((*ifstart == 'N') &&
+ (0 == strncmp(ifstart, "No statistics available",
+ sizeof("No statistics available"))))
+ continue;
+
if ((scan_line_to_use == scan_line_2_2) && ((stats - line) < 6)) {
snmp_log(LOG_ERR,
"interface data format error 2 (%d < 6), line ==|%s|\n",
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders