aboutsummaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/100-debian-statistics.patch
blob: 7f8f9df86858abdca54219e3f475d7afadf994df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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';