Include the timestamp TCP option in keep alive packets as well.
authormikeb <mikeb@openbsd.org>
Thu, 7 May 2015 09:19:31 +0000 (09:19 +0000)
committermikeb <mikeb@openbsd.org>
Thu, 7 May 2015 09:19:31 +0000 (09:19 +0000)
commit8ee5086c6c662a8bc7efb3f681d25be3328ce1f5
treef9de64077c9977e8affc8a7219aec2aff61ca459
parentf4ce75d227baed03d13911d26f451a7294b81b3e
Include the timestamp TCP option in keep alive packets as well.

According to RFC 7323 "once TSopt has been successfully negotiated,
... [it] MUST be sent in every non-<RST> segment for the duration
of the connection."  Which means that keep alives which are just
ACK packets must include that too.

Pointed out and tested by Lauri Tirkkonen <lotheac at iki ! fi>, thanks!
ok mpi
sys/netinet/tcp_subr.c