* Bug#336431: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n
@ 2005-11-01 1:13 dann frazier
2005-11-03 9:54 ` Harald Welte
0 siblings, 1 reply; 4+ messages in thread
From: dann frazier @ 2005-11-01 1:13 UTC (permalink / raw)
To: netfilter-devel; +Cc: 336431
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.
Signed-off-by: dann frazier <dannf@hp.com>
--- linux-source-2.6.14/net/ipv4/netfilter/ip_conntrack_helper_pptp.c.orig 2005-10-27 18:02:08.000000000 -0600
+++ linux-source-2.6.14/net/ipv4/netfilter/ip_conntrack_helper_pptp.c 2005-10-31 18:12:03.000000000 -0700
@@ -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);
--
dann frazier <dannf@hp.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n
2005-11-01 1:13 Bug#336431: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n dann frazier
@ 2005-11-03 9:54 ` Harald Welte
2005-11-03 16:29 ` Bug#336431: " dann frazier
0 siblings, 1 reply; 4+ messages in thread
From: Harald Welte @ 2005-11-03 9:54 UTC (permalink / raw)
To: dann frazier; +Cc: netfilter-devel, 336431
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
On Mon, Oct 31, 2005 at 06:13:55PM -0700, dann frazier wrote:
> 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.
--
- Harald Welte <laforge@netfilter.org> 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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Bug#336431: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n
2005-11-03 9:54 ` Harald Welte
@ 2005-11-03 16:29 ` dann frazier
2005-11-03 17:46 ` Harald Welte
0 siblings, 1 reply; 4+ messages in thread
From: dann frazier @ 2005-11-03 16:29 UTC (permalink / raw)
To: Harald Welte; +Cc: control, netfilter-devel, 336431
tags 336431 + upstream
tags 336431 + patch
stop
On Thu, 2005-11-03 at 10:54 +0100, Harald Welte wrote:
> On Mon, Oct 31, 2005 at 06:13:55PM -0700, dann frazier wrote:
> > 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
--
dann frazier <dannf@hp.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n
2005-11-03 16:29 ` Bug#336431: " dann frazier
@ 2005-11-03 17:46 ` Harald Welte
0 siblings, 0 replies; 4+ messages in thread
From: Harald Welte @ 2005-11-03 17:46 UTC (permalink / raw)
To: dann frazier; +Cc: netfilter-devel, 336431, control
[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]
On Thu, Nov 03, 2005 at 09:29:53AM -0700, dann frazier wrote:
> tags 336431 + upstream
> tags 336431 + patch
> stop
>
> On Thu, 2005-11-03 at 10:54 +0100, Harald Welte wrote:
> > On Mon, Oct 31, 2005 at 06:13:55PM -0700, dann frazier wrote:
> > > 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
no, it's
http://patchwork.netfilter.org/netfilter-devel/patch.pl?id=3001
sorry for the confusion.
--
- Harald Welte <laforge@netfilter.org> 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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-03 17:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01 1:13 Bug#336431: [PATCH] fix ip_conntrack_helper_pptp build when CONFIG_IP_NF_NAT_NEEDED=n dann frazier
2005-11-03 9:54 ` Harald Welte
2005-11-03 16:29 ` Bug#336431: " dann frazier
2005-11-03 17:46 ` Harald Welte
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.