Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/iptables/files: iptables-1.4.2-hashlimit.patch iptables-1.4.2-libxt_iprange.c-build.patch iptables-1.4.2-owner-restore.patch iptables-1.4.2-libxt_TOS-compilation.patch
Date: Wed, 21 Jan 2009 18:36:13
Message-Id: E1LPhvu-0002Vi-Bm@stork.gentoo.org
1 pva 09/01/21 18:36:10
2
3 Added: iptables-1.4.2-hashlimit.patch
4 iptables-1.4.2-libxt_iprange.c-build.patch
5 iptables-1.4.2-owner-restore.patch
6 iptables-1.4.2-libxt_TOS-compilation.patch
7 Log:
8 Some patches from upstream for misc build issues. Fixed hashlimit-htable-gcinterval save/restore issue, bug #254496, thank Михаил for report. Fixed save/restore issue for -m owner, bug #255113, thank Andrew Savchenko for report.
9 (Portage version: 2.2_rc23/cvs/Linux i686)
10
11 Revision Changes Path
12 1.1 net-firewall/iptables/files/iptables-1.4.2-hashlimit.patch
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-hashlimit.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-hashlimit.patch?rev=1.1&content-type=text/plain
16
17 Index: iptables-1.4.2-hashlimit.patch
18 ===================================================================
19 Author: pva@g.o
20 Fixes bug http://bugs.gentoo.org/show_bug.cgi?id=254496
21
22 === modified file 'extensions/libxt_hashlimit.c'
23 --- extensions/libxt_hashlimit.c 2009-01-21 18:23:22 +0000
24 +++ extensions/libxt_hashlimit.c 2009-01-21 18:23:32 +0000
25 @@ -636,7 +636,7 @@
26 if (info->cfg.max != 0)
27 printf("--hashlimit-htable-max %u ", info->cfg.max);
28 if (info->cfg.gc_interval != XT_HASHLIMIT_GCINTERVAL)
29 - printf("--hashlimit-htable-gcinterval %u", info->cfg.gc_interval);
30 + printf("--hashlimit-htable-gcinterval %u ", info->cfg.gc_interval);
31 if (info->cfg.expire != XT_HASHLIMIT_EXPIRE)
32 printf("--hashlimit-htable-expire %u ", info->cfg.expire);
33
34
35
36
37
38 1.1 net-firewall/iptables/files/iptables-1.4.2-libxt_iprange.c-build.patch
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-libxt_iprange.c-build.patch?rev=1.1&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-libxt_iprange.c-build.patch?rev=1.1&content-type=text/plain
42
43 Index: iptables-1.4.2-libxt_iprange.c-build.patch
44 ===================================================================
45 From: Thomas Jarosch <thomas.jarosch@×××××××××.com>
46 Date: Thu, 23 Oct 2008 13:40:52 +0000 (+0200)
47 Subject: Fix compile error in libxt_iprange.c using gcc 4.3.2
48 X-Git-Tag: v1.4.3-rc1~12
49 X-Git-Url: https://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff_plain;h=240eee607ab7e5bb9f671b7ceba40e2940182f61
50
51 Fix compile error in libxt_iprange.c using gcc 4.3.2
52
53 In file included from libxt_iprange.c:9:
54 ../include/linux/netfilter.h:43: error: field 'in' has incomplete type
55 ../include/linux/netfilter.h:44: error: field 'in6' has incomplete type
56 libxt_iprange.c: In function 'parse_iprange':
57 libxt_iprange.c:46: error: dereferencing pointer to incomplete type
58 libxt_iprange.c:53: error: dereferencing pointer to incomplete type
59 libxt_iprange.c: In function 'iprange_mt4_parse':
60 libxt_iprange.c:117: error: dereferencing pointer to incomplete type
61 libxt_iprange.c:121: error: dereferencing pointer to incomplete type
62 libxt_iprange.c:136: error: dereferencing pointer to incomplete type
63 libxt_iprange.c:140: error: dereferencing pointer to incomplete type
64 libxt_iprange.c: In function 'iprange_mt6_parse':
65 libxt_iprange.c:167: error: dereferencing pointer to incomplete type
66 libxt_iprange.c:171: error: dereferencing pointer to incomplete type
67 libxt_iprange.c:186: error: dereferencing pointer to incomplete type
68 libxt_iprange.c:190: error: dereferencing pointer to incomplete type
69
70 Signed-off-by: Thomas Jarosch <thomas.jarosch@×××××××××.com>
71 ---
72
73 diff --git a/extensions/libxt_iprange.c b/extensions/libxt_iprange.c
74 index 503372f..ee87a6f 100644
75 --- a/extensions/libxt_iprange.c
76 +++ b/extensions/libxt_iprange.c
77 @@ -5,6 +5,7 @@
78 #include <stdlib.h>
79 #include <getopt.h>
80
81 +#include <netinet/in.h>
82 #include <xtables.h>
83 #include <linux/netfilter.h>
84 #include <linux/netfilter/xt_iprange.h>
85
86
87
88 1.1 net-firewall/iptables/files/iptables-1.4.2-owner-restore.patch
89
90 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-owner-restore.patch?rev=1.1&view=markup
91 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-owner-restore.patch?rev=1.1&content-type=text/plain
92
93 Index: iptables-1.4.2-owner-restore.patch
94 ===================================================================
95 From: Daniel Drake <dsd@g.o>
96 Date: Mon, 19 Jan 2009 14:36:41 +0000 (+0100)
97 Subject: libxt_owner: add more spaces to output
98 X-Git-Url: https://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff_plain;h=cfb9cf0509ad8100cd8d6ab52d60a8ffbb318578
99
100 libxt_owner: add more spaces to output
101
102 Commit bb9284d1 ("libxt_owner: add spaces to output") moved the printing
103 of spaces away from the owner_mt_print() function family, but forgot to
104 add spaces in all of the print_item() functions that are called.
105
106 This is likely to be at least the partial cause of
107 https://bugs.gentoo.org/show_bug.cgi?id=254435
108
109 Signed-off-by: Daniel Drake <dsd@g.o>
110 Approves-of-this-patch: Jan Engelhardt <jengelh@×××××××.de>
111 Signed-off-by: Patrick McHardy <kaber@×××××.net>
112 ---
113
114 diff --git a/extensions/libxt_owner.c b/extensions/libxt_owner.c
115 index 298075e..4cd173e 100644
116 --- a/extensions/libxt_owner.c
117 +++ b/extensions/libxt_owner.c
118 @@ -324,7 +324,7 @@ owner_mt_print_item_v0(const struct ipt_owner_info *info, const char *label,
119 return;
120 if (info->invert & flag)
121 printf("! ");
122 - printf(label);
123 + printf("%s ", label);
124
125 switch (info->match & flag) {
126 case IPT_OWNER_UID:
127 @@ -375,7 +375,7 @@ owner_mt6_print_item_v0(const struct ip6t_owner_info *info, const char *label,
128 return;
129 if (info->invert & flag)
130 printf("! ");
131 - printf(label);
132 + printf("%s ", label);
133
134 switch (info->match & flag) {
135 case IP6T_OWNER_UID:
136
137
138
139 1.1 net-firewall/iptables/files/iptables-1.4.2-libxt_TOS-compilation.patch
140
141 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-libxt_TOS-compilation.patch?rev=1.1&view=markup
142 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/iptables/files/iptables-1.4.2-libxt_TOS-compilation.patch?rev=1.1&content-type=text/plain
143
144 Index: iptables-1.4.2-libxt_TOS-compilation.patch
145 ===================================================================
146 From: Jirí Moravec <jim.lkml@×××××.com>
147 Date: Wed, 22 Oct 2008 06:57:38 +0000 (+0200)
148 Subject: libxt_TOS: fix compilation error
149 X-Git-Tag: v1.4.3-rc1~15
150 X-Git-Url: https://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commitdiff_plain;h=56156cda196154aa015b7df030a2a9bbf34f4fcc
151
152 libxt_TOS: fix compilation error
153
154 Fix compilation error caused by double definition of IPPROTO_SCTP:
155
156 In file included from /usr/include/netinet/ip.h:25,
157 from /usr/include/linux/ip.h:19,
158 from tos_values.c:4,
159 from libxt_TOS.c:15:
160 /usr/include/netinet/in.h:84: error: expected identifier before numeric constant
161 make[2]: *** [libxt_TOS.oo] Error 1
162
163 Signed-off-by: Patrick McHardy <kaber@×××××.net>
164 ---
165
166 diff --git a/extensions/libxt_TOS.c b/extensions/libxt_TOS.c
167 index 9ce8473..55a7172 100644
168 --- a/extensions/libxt_TOS.c
169 +++ b/extensions/libxt_TOS.c
170 @@ -8,6 +8,7 @@
171 #include <stdio.h>
172 #include <stdlib.h>
173 #include <string.h>
174 +#include <netinet/in.h>
175
176 #include <xtables.h>
177 #include <linux/netfilter/xt_DSCP.h>