[PATCH] fix ip_nat_ftp in 2.6.0-test1

From: Harald Welte (laforge@netfilter.org)
Date: Thu Jul 17 2003 - 16:12:54 EST

Hi DaveM!

This is a 2.6 only fix for the FTP NAT helper code. The patch below
(by Martin Josefsson) also closes Bug 933 in the kernel bug tracker.

The bug was introduced while making the helper compliant to the recently
introduced support for nonlinear skb's in netfilter.


--- linux-2.5.75/net/ipv4/netfilter/ip_nat_helper.c.orig 2003-07-17 19:27:53.000000000 +0200
+++ linux-2.5.75/net/ipv4/netfilter/ip_nat_helper.c 2003-07-17 19:30:29.000000000 +0200
@@ -191,7 +191,7 @@
                                    csum_partial((char *)tcph, tcph->doff*4,
- (int)match_len - (int)rep_len,
+ (int)rep_len - (int)match_len,
                             ct, ctinfo);
         return 1;

- Harald Welte <laforge@netfilter.org>             http://www.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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:30 EST