Fix the handling of TCP FIN-segments in the CLOSED state
authortuexen <tuexen@FreeBSD.org>
Fri, 2 Dec 2016 08:02:31 +0000 (08:02 +0000)
committertuexen <tuexen@FreeBSD.org>
Fri, 2 Dec 2016 08:02:31 +0000 (08:02 +0000)
commitc25f2a0572a6a5d733bd2d5bc6e7715400bb8b6f
tree6fcd4e79de543c20d5514c07edb16f7bffa5bb3d
parent56c3b3d776e28d70cf24bd831a403f32ecdfe24f
Fix the handling of  TCP FIN-segments in the CLOSED state

When a TCP segment with the FIN bit set was received in the CLOSED state,
a TCP RST-ACK-segment is sent. When computing SEG.ACK for this, the
FIN counts as one byte. This accounting was missing and is fixed by this
patch.

Reviewed by: hiren
MFC after: 1 month
Sponsored by: Netflix, Inc.
Differential Revision: https://svn.freebsd.org/base/head
sys/netinet/tcp_input.c