--- a/src/plugins/net.c Sun Jun 15 10:19:30 2008 +0200
+++ b/src/plugins/net.c Sun Jun 15 10:54:18 2008 +0200
@@ -59,6 +59,7 @@ ifdown(const char *iface)
snprintf(cmdline, sizeof(cmdline), "/sbin/ifdown %s", iface);
trace("%s\n", cmdline);
system(cmdline);
+
return 0;
}
@@ -322,6 +323,8 @@ net_monitor(int fd, const char *iface)
ifdown(iface);
last_time_changed = 0;
polltime = DEFAULT_POLLTIME;
+ /* we need to have the interface up to monitor it */
+ net_interface_set_up_flag(fd, iface);
}
}
else if (status == 1)