/[linux-patches]/genpatches-2.6/trunk/2.6.14/1127_3_conntrack-syn-push.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1127_3_conntrack-syn-push.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 10 months ago) by johnm
File MIME type: text/x-diff
File size: 1231 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From stable-bounces@linux.kernel.org Tue Nov 15 04:32:49 2005
2 Date: Tue, 15 Nov 2005 13:32:36 +0100
3 From: Harald Welte <laforge@netfilter.org>
4 To: Stable Kernel <stable@kernel.org>
5 Cc:
6 Subject: [PATCH] [NETFILTER] ip_conntrack TCP: Accept SYN+PUSH like SYN
7
8 From: Vlad Drukker <vlad@storewiz.com>
9
10 Some devices (e.g. Qlogic iSCSI HBA hardware like QLA4010 up to firmware
11 3.0.0.4) initiates TCP with SYN and PUSH flags set.
12
13 The Linux TCP/IP stack deals fine with that, but the connection tracking
14 code doesn't.
15
16 This patch alters TCP connection tracking to accept SYN+PUSH as a valid
17 flag combination.
18
19 Signed-off-by: Vlad Drukker <vlad@storewiz.com>
20 Signed-off-by: Harald Welte <laforge@netfilter.org>
21 Signed-off-by: Chris Wright <chrisw@osdl.org>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
23 ---
24 net/ipv4/netfilter/ip_conntrack_proto_tcp.c | 1 +
25 1 file changed, 1 insertion(+)
26
27 --- linux-2.6.14.2.orig/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
28 +++ linux-2.6.14.2/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
29 @@ -818,6 +818,7 @@ static u8 tcp_valid_flags[(TH_FIN|TH_SYN
30 {
31 [TH_SYN] = 1,
32 [TH_SYN|TH_ACK] = 1,
33 + [TH_SYN|TH_PUSH] = 1,
34 [TH_SYN|TH_ACK|TH_PUSH] = 1,
35 [TH_RST] = 1,
36 [TH_RST|TH_ACK] = 1,

  ViewVC Help
Powered by ViewVC 1.1.20