Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/iproute2/files: iproute2-2.6.29.1-flush.patch
Date: Sat, 26 Dec 2009 19:53:58
Message-Id: E1NOci3-0001hO-8A@stork.gentoo.org
1 vapier 09/12/26 19:53:55
2
3 Modified: iproute2-2.6.29.1-flush.patch
4 Log:
5 clean up patch and document it
6
7 Revision Changes Path
8 1.2 sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch?rev=1.2&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch?rev=1.2&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch?r1=1.1&r2=1.2
13
14 Index: iproute2-2.6.29.1-flush.patch
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/sys-apps/iproute2/files/iproute2-2.6.29.1-flush.patch,v
17 retrieving revision 1.1
18 retrieving revision 1.2
19 diff -u -r1.1 -r1.2
20 --- iproute2-2.6.29.1-flush.patch 11 Jul 2009 07:38:53 -0000 1.1
21 +++ iproute2-2.6.29.1-flush.patch 26 Dec 2009 19:53:55 -0000 1.2
22 @@ -1,6 +1,14 @@
23 -diff -Nru iproute2-2.6.29-1.orig/ip/ipaddress.c iproute2-2.6.29-1/ip/ipaddress.c
24 ---- iproute2-2.6.29-1.orig/ip/ipaddress.c 2009-03-24 23:40:54.000000000 +0100
25 -+++ iproute2-2.6.29-1/ip/ipaddress.c 2009-07-11 09:00:32.000000000 +0200
26 +https://bugs.gentoo.org/274973
27 +
28 +If the routing table that I wanna flush has 60 entries or more, "ip route flush
29 +table foo" fails with the following error:
30 + Failed to send flush request: Success
31 + Flush terminated
32 +
33 +Patch by Alin Năstac <mrness@g.o>
34 +
35 +--- iproute2-2.6.29-1/ip/ipaddress.c
36 ++++ iproute2-2.6.29-1/ip/ipaddress.c
37 @@ -37,6 +37,8 @@
38
39 #define MAX_ROUNDS 10
40 @@ -52,9 +60,8 @@
41 return 1;
42 }
43
44 -diff -Nru iproute2-2.6.29-1.orig/ip/ipneigh.c iproute2-2.6.29-1/ip/ipneigh.c
45 ---- iproute2-2.6.29-1.orig/ip/ipneigh.c 2009-03-24 23:40:54.000000000 +0100
46 -+++ iproute2-2.6.29-1/ip/ipneigh.c 2009-07-11 09:04:32.000000000 +0200
47 +--- iproute2-2.6.29-1/ip/ipneigh.c
48 ++++ iproute2-2.6.29-1/ip/ipneigh.c
49 @@ -32,6 +32,8 @@
50 #define NUD_VALID (NUD_PERMANENT|NUD_NOARP|NUD_REACHABLE|NUD_PROBE|NUD_STALE|NUD_DELAY)
51 #define MAX_ROUNDS 10
52 @@ -107,9 +114,8 @@
53 return 1;
54 }
55
56 -diff -Nru iproute2-2.6.29-1.orig/ip/iproute.c iproute2-2.6.29-1/ip/iproute.c
57 ---- iproute2-2.6.29-1.orig/ip/iproute.c 2009-03-24 23:40:54.000000000 +0100
58 -+++ iproute2-2.6.29-1/ip/iproute.c 2009-07-11 09:04:45.000000000 +0200
59 +--- iproute2-2.6.29-1/ip/iproute.c
60 ++++ iproute2-2.6.29-1/ip/iproute.c
61 @@ -37,6 +37,7 @@
62 #define RTAX_RTTVAR RTAX_HOPS
63 #endif
64 @@ -145,9 +151,8 @@
65 return 0;
66 }
67 round++;
68 -diff -Nru iproute2-2.6.29-1.orig/ip/xfrm_policy.c iproute2-2.6.29-1/ip/xfrm_policy.c
69 ---- iproute2-2.6.29-1.orig/ip/xfrm_policy.c 2009-03-24 23:40:54.000000000 +0100
70 -+++ iproute2-2.6.29-1/ip/xfrm_policy.c 2009-07-11 08:59:34.000000000 +0200
71 +--- iproute2-2.6.29-1/ip/xfrm_policy.c
72 ++++ iproute2-2.6.29-1/ip/xfrm_policy.c
73 @@ -756,11 +756,15 @@
74 struct xfrm_buffer xb;
75 char buf[NLMSG_DELETEALL_BUF_SIZE];
76 @@ -182,9 +187,8 @@
77 } else {
78 if (rtnl_wilddump_request(&rth, preferred_family, XFRM_MSG_GETPOLICY) < 0) {
79 perror("Cannot send dump request");
80 -diff -Nru iproute2-2.6.29-1.orig/ip/xfrm_state.c iproute2-2.6.29-1/ip/xfrm_state.c
81 ---- iproute2-2.6.29-1.orig/ip/xfrm_state.c 2009-03-24 23:40:54.000000000 +0100
82 -+++ iproute2-2.6.29-1/ip/xfrm_state.c 2009-07-11 09:03:37.000000000 +0200
83 +--- iproute2-2.6.29-1/ip/xfrm_state.c
84 ++++ iproute2-2.6.29-1/ip/xfrm_state.c
85 @@ -924,11 +924,15 @@
86 struct xfrm_buffer xb;
87 char buf[NLMSG_DELETEALL_BUF_SIZE];