netfilter-2.6/patch-o-matic-ng/trunk/net/ipv4/netfilter/ip_conntrack_core.c
pluto
cvs at pld-linux.org
Wed Jun 22 15:03:32 CEST 2005
Author: pluto
Date: Wed Jun 22 15:03:30 2005
New Revision: 6170
Modified:
netfilter-2.6/patch-o-matic-ng/trunk/net/ipv4/netfilter/ip_conntrack_core.c
Log:
- since expectation timeouts were made compulsory [1],
there is no need to check for them in ip_conntrack_expect_insert.
(Phil Oester, Patrick McHardy).
[1] https://lists.netfilter.org/pipermail/netfilter-devel/2005-January/018143.html
Modified: netfilter-2.6/patch-o-matic-ng/trunk/net/ipv4/netfilter/ip_conntrack_core.c
==============================================================================
--- netfilter-2.6/patch-o-matic-ng/trunk/net/ipv4/netfilter/ip_conntrack_core.c (original)
+++ netfilter-2.6/patch-o-matic-ng/trunk/net/ipv4/netfilter/ip_conntrack_core.c Wed Jun 22 15:03:30 2005
@@ -847,15 +847,11 @@
exp->master->expecting++;
list_add(&exp->list, &ip_conntrack_expect_list);
- if (exp->master->helper->timeout) {
- init_timer(&exp->timeout);
- exp->timeout.data = (unsigned long)exp;
- exp->timeout.function = expectation_timed_out;
- exp->timeout.expires
- = jiffies + exp->master->helper->timeout * HZ;
- add_timer(&exp->timeout);
- } else
- exp->timeout.function = NULL;
+ init_timer(&exp->timeout);
+ exp->timeout.data = (unsigned long)exp;
+ exp->timeout.function = expectation_timed_out;
+ exp->timeout.expires = jiffies + exp->master->helper->timeout * HZ;
+ add_timer(&exp->timeout);
atomic_inc(&exp->use);
CONNTRACK_STAT_INC(expect_create);
More information about the pld-cvs-commit
mailing list