diff options
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.patch | 28 |
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 + |