[tcp] Avoid setting PSH flag when SYN flag is set
authorMichael Brown <mcb30@etherboot.org>
Tue, 10 Mar 2009 08:15:47 +0000 (08:15 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 10 Mar 2009 08:15:47 +0000 (08:15 +0000)
commit3ed468e0c58bb0eb94925c18a0461cd5014b5777
tree95969645c0b1b82845799796d4bd76dd678a368b
parent4397a2a4ca5e04a5a736eb792d8cc3ac50f32db1
[tcp] Avoid setting PSH flag when SYN flag is set

Some firewall devices seem to regard SYN,PSH as an invalid flag
combination and reject the packet.  Fix by setting PSH only if SYN is
not set.

Reported-by: DSE Incorporated <dseinc@gmail.com>
src/net/tcp.c