All of lore.kernel.org
 help / color / mirror / Atom feed
* [NETFILTER 2/2]: nf_conntrack_ipv4: fix incorrect #ifdef config name
@ 2007-05-16 16:54 Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2007-05-16 16:54 UTC (permalink / raw)
  To: David S. Miller, Netfilter Development Mailinglist

[-- Attachment #1: 02.diff --]
[-- Type: text/x-diff, Size: 1423 bytes --]

[NETFILTER]: nf_conntrack_ipv4: fix incorrect #ifdef config name

The option is named CONFIG_NF_NAT not CONFIG_IP_NF_NAT. Remove the ifdef
completely since helpers also expect defragmented packet even without
NAT.

Noticed by Robert P. J. Day <rpjday@mindspring.com>

Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit 4fa9ec238fd61ffd3e6f36f67ed5730db018d00c
tree 6282a1f52b4f32664c7bdc0e95f8c593cdf000b7
parent a49738a0ca6dbe54bbc6672b52286ed6b1d8f4ce
author Patrick McHardy <kaber@trash.net> Wed, 16 May 2007 18:51:44 +0200
committer Patrick McHardy <kaber@trash.net> Wed, 16 May 2007 18:51:44 +0200

 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
index 0654eaa..fd62a41 100644
--- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
+++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
@@ -154,12 +154,10 @@ static unsigned int ipv4_conntrack_defrag(unsigned int hooknum,
 					  const struct net_device *out,
 					  int (*okfn)(struct sk_buff *))
 {
-#if !defined(CONFIG_IP_NF_NAT) && !defined(CONFIG_IP_NF_NAT_MODULE)
 	/* Previously seen (loopback)?  Ignore.  Do this before
 	   fragment check. */
 	if ((*pskb)->nfct)
 		return NF_ACCEPT;
-#endif
 
 	/* Gather fragments. */
 	if (ip_hdr(*pskb)->frag_off & htons(IP_MF | IP_OFFSET)) {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-16 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-16 16:54 [NETFILTER 2/2]: nf_conntrack_ipv4: fix incorrect #ifdef config name Patrick McHardy

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.