]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: refine SYN handling in tcp_validate_incoming
authorEric Dumazet <edumazet@google.com>
Tue, 17 Jul 2012 12:29:30 +0000 (12:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2012 16:31:25 +0000 (09:31 -0700)
commit00c06c591310219776358fe044f2664354bfa835
treea4b9d5c0a863eb7e7dd2cd63421841d6349b8baf
parentb1d3022e409799abe24b7cbbd8cc0ca5e045855a
tcp: refine SYN handling in tcp_validate_incoming

Followup of commit 5b4a44e16045 (tcp: implement RFC 5961 4.2)

As reported by Vijay Subramanian, we should send a challenge ACK
instead of a dup ack if a SYN flag is set on a packet received out of
window.

This permits the ratelimiting to work as intended, and to increase
correct SNMP counters.

Suggested-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Vijay Subramanian <subramanian.vijay@gmail.com>
Cc: Kiran Kumar Kella <kkiran@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c