aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-14 07:30:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-14 07:52:22 +0000
commit2e229842647775e2c19f1742d1f7ee872ca67841 (patch)
tree1d427c4cf23ad5640334a76e173aed4cdb456fb5 /testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch
parenta1cf54a3c50497e18ae1a7360f9de17edca18bad (diff)
downloadaports-2e229842647775e2c19f1742d1f7ee872ca67841.tar.bz2
aports-2e229842647775e2c19f1742d1f7ee872ca67841.tar.xz
testing/ipt-netflow-grsec: rebuild against kernel 3.9.2-r0
Diffstat (limited to 'testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch')
-rw-r--r--testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch b/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch
new file mode 100644
index 0000000000..f3cbfae429
--- /dev/null
+++ b/testing/ipt-netflow-grsec/0001-Fix-compilation-with-3.9.y-kernel.patch
@@ -0,0 +1,28 @@
+From 2f4b540bb2e60aca47263cf0fd2b3abc0a499d87 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 14 May 2013 07:25:47 +0000
+Subject: [PATCH] Fix compilation with 3.9.y kernel
+
+use new hlist_for_each api
+---
+ ipt_NETFLOW.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c
+index d4c91e1..4e1b9f3 100644
+--- a/ipt_NETFLOW.c
++++ b/ipt_NETFLOW.c
+@@ -854,9 +854,7 @@ static struct ipt_netflow *
+ ipt_netflow_find(const struct ipt_netflow_tuple *tuple, unsigned int hash)
+ {
+ struct ipt_netflow *nf;
+- struct hlist_node *pos;
+-
+- hlist_for_each_entry(nf, pos, &ipt_netflow_hash[hash], hlist) {
++ hlist_for_each_entry(nf, &ipt_netflow_hash[hash], hlist) {
+ if (ipt_netflow_tuple_equal(tuple, &nf->tuple) &&
+ nf->nr_bytes < FLOW_FULL_WATERMARK) {
+ NETFLOW_STAT_INC(found);
+--
+1.8.2.2
+