Cygwin: tcp: Support TCP_FASTOPEN

TCP_FASTOPEN is supported since W10 1607.  Fake otherwise.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2020-06-30 14:34:19 +02:00
parent e037192b50
commit 0feb77c260
5 changed files with 93 additions and 4 deletions

View File

@ -125,5 +125,6 @@ struct tcphdr {
*/
#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
#define TCP_MAXSEG 0x04 /* get maximum segment size (r/o on windows) */
#define TCP_FASTOPEN 0x0f /* enable FastOpen on listeners */
#endif