move net-snmp from libs/ to net/

git-svn-id: svn://svn.openwrt.org/openwrt/packages@18780 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2009-12-14 22:12:25 +00:00
parent 05619b12c5
commit 3f60382991
13 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- a/agent/mibgroup/mibII/interfaces.c
+++ b/agent/mibgroup/mibII/interfaces.c
@@ -1550,6 +1550,10 @@ Interface_Scan_Init(void)
struct ifnet *nnew;
char *stats, *ifstart = line;
+ /* Ignore interfaces with no statistics. */
+ if (strstr(line, "No statistics available."))
+ continue;
+
if (line[strlen(line) - 1] == '\n')
line[strlen(line) - 1] = '\0';
@@ -1583,7 +1587,7 @@ Interface_Scan_Init(void)
&coll) != 5)) {
if ((scan_line_to_use == scan_line_2_2)
&& !strstr(line, "No statistics available"))
- snmp_log(LOG_ERR,
+ snmp_log(LOG_DEBUG,
"/proc/net/dev data format error, line ==|%s|",
line);
continue;