mirror of
https://github.com/openwrt/packages.git
synced 2025-02-07 06:59:51 +00:00
13a237d941
Adjust patches for current version changes Module "disk" renamed to "disk_hw" Internal type "unknown" changed to "u_int32_t" Add patch with removing macro syntax checking for successful build Signed-off-by: Ivan Pavlov <AuthorReflex@gmail.com>
14 lines
425 B
Diff
14 lines
425 B
Diff
--- a/agent/mibgroup/mibII/interfaces.c
|
|
+++ b/agent/mibgroup/mibII/interfaces.c
|
|
@@ -1586,6 +1586,10 @@ Interface_Scan_Init(void)
|
|
char *stats, *ifstart = line;
|
|
size_t len;
|
|
|
|
+ /* Ignore interfaces with no statistics. */
|
|
+ if (strstr(line, "No statistics available."))
|
|
+ continue;
|
|
+
|
|
len = strlen(line);
|
|
if (len && line[len - 1] == '\n')
|
|
line[len - 1] = '\0';
|