All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ip_conntrack_proto_tcp
@ 2005-11-10 15:48 Vlad Drukker
  2005-11-11 13:00 ` Pablo Neira
  0 siblings, 1 reply; 7+ messages in thread
From: Vlad Drukker @ 2005-11-10 15:48 UTC (permalink / raw)
  To: coreteam; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

Hi there,

Attached patch for ip_conntrack to account TCP sessions started with SYN
+PUSH flags. Looks weird, but some HW vendors do TCP their own way. 

Let's earn some points from RFC 1025.

Cheers,
Vlad.

[-- Attachment #2: SYN_PUSH.patch --]
[-- Type: text/x-patch, Size: 1085 bytes --]

[NETFILTER] ip_conntrack SYN PUSH patch
	
Some Qlogic iSCSI HBA hardware like QLA4010 up to firmware 3.0.0.4
initiates TCP with SYN and PUSH flags set.
Linux TCP/IP stack works fine with that.
Make ip_conntrack do the same.

Signed-off-by: Vlad Drukker <vlad@storewiz.com>
---
commit c02dd55183e5f8330da96fb82291a76492b6e7c4
tree 0aca6b3836eef97bfc552ed00883ce8f73c3e5f9
parent 407cf928e19d8cd8bb91160da6fd7a900b1e4705
author <vlad@storewiz.com> Thu, 10 Nov 2005 17:07:25 +0200
committer <vlad@storewiz.com> Thu, 10 Nov 2005 17:07:25 +0200

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

diff --git a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
--- a/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
+++ b/net/ipv4/netfilter/ip_conntrack_proto_tcp.c
@@ -813,6 +813,7 @@ static u8 tcp_valid_flags[(TH_FIN|TH_SYN
 {
 	[TH_SYN]			= 1,
 	[TH_SYN|TH_ACK]			= 1,
+	[TH_SYN|TH_PUSH]		= 1,
 	[TH_SYN|TH_ACK|TH_PUSH]		= 1,
 	[TH_RST]			= 1,
 	[TH_RST|TH_ACK]			= 1,

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-12 20:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-10 15:48 [PATCH] ip_conntrack_proto_tcp Vlad Drukker
2005-11-11 13:00 ` Pablo Neira
2005-11-11 13:02   ` Pablo Neira
2005-11-11 13:58   ` [netfilter-core] " Patrick McHardy
2005-11-11 19:48     ` David S. Miller
2005-11-12 10:39       ` [PATCH] [NETFILTER]: Allow SYN+PSH as valid flag combination Harald Welte
2005-11-12 20:14         ` David S. Miller

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.