All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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.