mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 20:55:19 +03:00
28 lines
870 B
Diff
28 lines
870 B
Diff
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
|
|
|