]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2-a-flush-hack.patch
- limit number of loop passes while address flushing to 10k
[packages/iproute2.git] / iproute2-a-flush-hack.patch
1 diff -urN iproute2.org/ip/ipaddress.c iproute2/ip/ipaddress.c
2 --- iproute2.org/ip/ipaddress.c 2004-03-04 23:00:41.050515248 +0100
3 +++ iproute2/ip/ipaddress.c     2004-03-04 23:08:08.810575433 +0100
4 @@ -603,7 +603,7 @@
5                                 fprintf(stderr, "Flush terminated\n");
6                                 exit(1);
7                         }
8 -                       if (filter.flushed == 0) {
9 +                       if (filter.flushed == 0 || round > 10000) {
10                                 if (round == 0) {
11                                         fprintf(stderr, "Nothing to flush.\n");
12                                 } else if (show_stats)
This page took 0.066786 seconds and 3 git commands to generate.