]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
[NETFILTER] {ip,nf}_conntrack TCP: Accept SYN+PUSH like SYN
authorVlad Drukker <vlad@storewiz.com>
Sat, 12 Nov 2005 20:13:14 +0000 (12:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Nov 2005 20:13:14 +0000 (12:13 -0800)
Some devices (e.g. Qlogic iSCSI HBA hardware like QLA4010 up to firmware
3.0.0.4) initiates TCP with SYN and PUSH flags set.

The Linux TCP/IP stack deals fine with that, but the connection tracking
code doesn't.

This patch alters TCP connection tracking to accept SYN+PUSH as a valid
flag combination.

Signed-off-by: Vlad Drukker <vlad@storewiz.com>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_proto_tcp.c

index 468c6003b4c78c7715bdffd7cedffefc66bc0989..5b3f5220f2896cc965d809f1678847b1471e79f8 100644 (file)
@@ -814,6 +814,7 @@ static u8 tcp_valid_flags[(TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG) + 1] =
 {
        [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,
index 83d90dd624f05638fd0aac1e99e6583c4eeb69e2..156680ddb042e2f9fff86b5e862b1aac48c93aed 100644 (file)
@@ -779,6 +779,7 @@ static u8 tcp_valid_flags[(TH_FIN|TH_SYN|TH_RST|TH_PUSH|TH_ACK|TH_URG) + 1] =
 {
        [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,