From ec7555f33c89beaf39cb440cbf9f4c4697bb0287 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 4 Mar 2004 22:27:12 +0000 Subject: [PATCH 1/1] - limit number of loop passes while address flushing to 10k Changed files: iproute2-a-flush-hack.patch -> 1.1 --- iproute2-a-flush-hack.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 iproute2-a-flush-hack.patch diff --git a/iproute2-a-flush-hack.patch b/iproute2-a-flush-hack.patch new file mode 100644 index 0000000..6608a99 --- /dev/null +++ b/iproute2-a-flush-hack.patch @@ -0,0 +1,12 @@ +diff -urN iproute2.org/ip/ipaddress.c iproute2/ip/ipaddress.c +--- iproute2.org/ip/ipaddress.c 2004-03-04 23:00:41.050515248 +0100 ++++ iproute2/ip/ipaddress.c 2004-03-04 23:08:08.810575433 +0100 +@@ -603,7 +603,7 @@ + fprintf(stderr, "Flush terminated\n"); + exit(1); + } +- if (filter.flushed == 0) { ++ if (filter.flushed == 0 || round > 10000) { + if (round == 0) { + fprintf(stderr, "Nothing to flush.\n"); + } else if (show_stats) -- 2.44.0