1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## ip_address_flush_loop.dpatch by Alexander Wirt <formorer@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad iproute-20060323~/ip/ipaddress.c iproute-20060323/ip/ipaddress.c
9
--- iproute-20060323~/ip/ipaddress.c 2006-09-08 17:02:03.000000000 +0200
10
+++ iproute-20060323/ip/ipaddress.c 2006-09-08 17:03:01.000000000 +0200
18
#include <sys/ioctl.h>
22
char flushb[4096-512];
23
+ time_t start = time(0);
25
filter.flushb = flushb;
31
+ if (time(0) - start > 10) {
32
+ printf("\n*** Flush not completed after %ld seconds, %d entries remain ***\n",
33
+ time(0) - start, filter.flushed);
38
printf("\n*** Round %d, deleting %d addresses ***\n", round, filter.flushed);