Skip to contentSkip to conversation

Missed any patches?

DISCUSSION Patrick McHardy 4 participants 8 messages Jun 11, 2005 – Jun 13, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I've applied everything on the list I could find, if I missed anything please resend now. Thanks.

#1 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

Quoted 2 lines · Patrick McHardy

I've applied everything on the list I could find, if I missed anything please resend now. Thanks.

Here's one

Since expectation timeouts were made compulsory [1], there is no need to check for them in ip_conntrack_expect_insert.

Phil

[1] https://lists.netfilter.org/pipermail/netfilter-devel/2005-January/018143.html

net/ipv4/netfilter/ip_conntrack_core.c +5 -9
diff -ruN linux-orig/net/ipv4/netfilter/ip_conntrack_core.c linux-new/net/ipv4/netfilter/ip_conntrack_core.c
@@ -760,15 +760,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);
 
 	CONNTRACK_STAT_INC(expect_create);
 }
#2 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

Quoted 2 lines · Phil Oester

Since expectation timeouts were made compulsory [1], there is no need to check for them in ip_conntrack_expect_insert.

Thanks, I just found it and am about to apply it to my 2.6.13 tree.

Regards
Patrick

#3 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

Quoted 4 lines
Quoted 2 lines

Since expectation timeouts were made compulsory [1], there is no need to check for them in ip_conntrack_expect_insert.

Thanks, I just found it and am about to apply it to my 2.6.13 tree.

Is there any chance that all of POMng will get updated? Most of the patches still address a 2.6.<10 kernel. I have not tested if they apply correctly (I don't need them ... yet), but if they don't, rediff could be wise.

CHS,
Jan Engelhardt

Signature · 2 lines
| Gesellschaft fuer Wissenschaftliche Datenverarbeitung Goettingen,
| Am Fassberg, 37077 Goettingen, www.gwdg.de
#4 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

Quoted 3 lines · Jan Engelhardt

Is there any chance that all of POMng will get updated? Most of the patches still address a 2.6.<10 kernel. I have not tested if they apply correctly (I don't need them ... yet), but if they don't, rediff could be wise.

Updated how? Which patches are you talking about?

Regards
Patrick

#5 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

Quoted 5 lines
Quoted 3 lines

Is there any chance that all of POMng will get updated? Most of the patches still address a 2.6.<10 kernel. I have not tested if they apply correctly (I don't need them ... yet), but if they don't, rediff could be wise.

Updated how? Which patches are you talking about?

Heh, you got me.

NAT reservations, for example, cannot be applied to a 2.6.11, because the expect code changed.

The ACCOUNT directory in today's (well, yesterday 20050610) POMng tree has a linux.patch with this header:
--- kernel-2.4.25/include/linux/netfilter_ipv4/ip_tables.h Mon Apr 12
Not exactly 2.6.x at all :)

Jan Engelhardt

Signature · 2 lines
| Gesellschaft fuer Wissenschaftliche Datenverarbeitung Goettingen,
| Am Fassberg, 37077 Goettingen, www.gwdg.de
#6 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

Quoted 7 lines · Jan Engelhardt

NAT reservations, for example, cannot be applied to a 2.6.11, because the expect code changed.

The ACCOUNT directory in today's (well, yesterday 20050610) POMng tree has a linux.patch with this header:
--- kernel-2.4.25/include/linux/netfilter_ipv4/ip_tables.h Mon Apr 12
Not exactly 2.6.x at all :)

Harald was working on porting connection tracking and NAT helpers to 2.6.11. For the other patches you have to talk to their authors or hope for someone else to do it.

Regards
Patrick

#7 lore raw

Re: Missed any patches? [PATCH] expectation timeouts

In reply to Jan Engelhardt
Quoted 10 lines · Jan Engelhardt
Quoted 5 lines
Quoted 3 lines

Is there any chance that all of POMng will get updated? Most of the patches still address a 2.6.<10 kernel. I have not tested if they apply correctly (I don't need them ... yet), but if they don't, rediff could be wise.

Updated how? Which patches are you talking about?

The ACCOUNT directory in today's (well, yesterday 20050610) POMng tree has a linux.patch with this header:
--- kernel-2.4.25/include/linux/netfilter_ipv4/ip_tables.h Mon Apr 12
Not exactly 2.6.x at all :)

I have a 2.6 version, but it has to be cleaned up a bit. Will send it upstream at the end of this week.

Regards,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/