Skip to contentSkip to conversation

Bug#336431: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n

PATCH dann frazier 2 participants 4 messages Nov 1, 2005 – Nov 3, 2005

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

As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336431,
ip_conntrack_helper_pptp in 2.6.14 fails to build if CONFIG_IP_NF_NAT_NEEDED isn't enabled. This patch fixes this by disabling manipulation of the dir field of ip_conntrack_expect structures when full nat isn't configured. Compile tested only.

net/ipv4/netfilter/ip_conntrack_helper_pptp.c renamed from net/ipv4/netfilter/ip_conntrack_helper_pptp.c.orig +3 -2
@@ -270,13 +270,14 @@
 	exp_orig->expectfn = pptp_expectfn;
 	exp_orig->flags = 0;
 
-	exp_orig->dir = IP_CT_DIR_ORIGINAL;
-
 	/* both expectations are identical apart from tuple */
 	memcpy(exp_reply, exp_orig, sizeof(*exp_reply));
 	memcpy(&exp_reply->tuple, &exp_tuples[1], sizeof(exp_reply->tuple));
 
+#ifdef CONFIG_IP_NF_NAT_NEEDED
+	exp_orig->dir = IP_CT_DIR_ORIGINAL;
 	exp_reply->dir = !exp_orig->dir;
+#endif
 
 	if (ip_nat_pptp_hook_exp_gre)
 		ret = ip_nat_pptp_hook_exp_gre(exp_orig, exp_reply);
Signature · 1 line
dann frazier <[email protected]>
#1 lore raw

Re: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n

Quoted 5 lines · dann frazier

As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336431,
ip_conntrack_helper_pptp in 2.6.14 fails to build if CONFIG_IP_NF_NAT_NEEDED isn't enabled. This patch fixes this by disabling manipulation of the dir field of ip_conntrack_expect structures when full nat isn't configured. Compile tested only.

Thanks for reporting this bug. Yasuyuki Kozakai has submitted a
slightly cleaner version, so I'm merging his patch.

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
#2 lore raw

tags 336431 + upstream
tags 336431 + patch
stop

Quoted 9 lines · Harald Welte
Quoted 5 lines · dann frazier

As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336431,
ip_conntrack_helper_pptp in 2.6.14 fails to build if CONFIG_IP_NF_NAT_NEEDED isn't enabled. This patch fixes this by disabling manipulation of the dir field of ip_conntrack_expect structures when full nat isn't configured. Compile tested only.

Thanks for reporting this bug. Yasuyuki Kozakai has submitted a
slightly cleaner version, so I'm merging his patch.

Thanks for the response Harald.

Looks like this is the patch we should use:
http://patchwork.netfilter.org/netfilter-devel/patch.pl?id=2991

Signature · 1 line
dann frazier <[email protected]>
#3 lore raw

Re: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n

Quoted 12 lines · dann frazier

tags 336431 + upstream
tags 336431 + patch
stop

Quoted 7 lines · Harald Welte
Quoted 5 lines · dann frazier

As reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=336431,
ip_conntrack_helper_pptp in 2.6.14 fails to build if CONFIG_IP_NF_NAT_NEEDED isn't enabled. This patch fixes this by disabling manipulation of the dir field of ip_conntrack_expect structures when full nat isn't configured. Compile tested only.

Quoted 7 lines
Quoted 2 lines

Thanks for reporting this bug. Yasuyuki Kozakai has submitted a
slightly cleaner version, so I'm merging his patch.

Thanks for the response Harald.

Looks like this is the patch we should use:
http://patchwork.netfilter.org/netfilter-devel/patch.pl?id=2991

no, it's

http://patchwork.netfilter.org/netfilter-devel/patch.pl?id=3001

sorry for the confusion.

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie