|
@@ -0,0 +1,15 @@
|
|
|
+From: Christoph Biedl <debian.packages.hhqj@manchmal.in-ulm.de>
|
|
|
+Subject: Do not leave main loop while listening on "any" interface
|
|
|
+Forwarded: http://lists.mindrot.org/pipermail/netflow-tools/2011-February/000488.html
|
|
|
+
|
|
|
+--- a/softflowd.c
|
|
|
++++ b/softflowd.c
|
|
|
+@@ -1924,7 +1924,7 @@ main(int argc, char **argv)
|
|
|
+ logit(LOG_ERR, "Exiting on pcap_dispatch: %s",
|
|
|
+ pcap_geterr(pcap));
|
|
|
+ break;
|
|
|
+- } else if (r == 0) {
|
|
|
++ } else if (r == 0 && capfile != NULL) {
|
|
|
+ logit(LOG_NOTICE, "Shutting down after "
|
|
|
+ "pcap EOF");
|
|
|
+ graceful_shutdown_request = 1;
|