diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2020-06-30 15:34:19 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-07-01 21:30:40 +0300 |
commit | 0feb77c26084be83ce3aaeebc17b999bb3627efa (patch) | |
tree | 7abddb71d9b732d3a9dd6164ada7670cc512c256 /winsup/cygwin/wincap.cc | |
parent | e037192b505b4f233fca9a6deafc9797210f6693 (diff) |
Cygwin: tcp: Support TCP_FASTOPEN
TCP_FASTOPEN is supported since W10 1607. Fake otherwise.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/wincap.cc')
-rw-r--r-- | winsup/cygwin/wincap.cc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index 4d136007f..be6d71d12 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -46,6 +46,7 @@ wincaps wincap_vista __attribute__((section (".cygwin_dll_common"), shared)) = { has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:false, }, }; @@ -77,6 +78,7 @@ wincaps wincap_7 __attribute__((section (".cygwin_dll_common"), shared)) = { has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:false, }, }; @@ -108,6 +110,7 @@ wincaps wincap_8 __attribute__((section (".cygwin_dll_common"), shared)) = { has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:false, }, }; @@ -139,6 +142,7 @@ wincaps wincap_8_1 __attribute__((section (".cygwin_dll_common"), shared)) = { has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:false, }, }; @@ -170,6 +174,39 @@ wincaps wincap_10_1507 __attribute__((section (".cygwin_dll_common"), shared)) has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:false, + }, +}; + +wincaps wincap_10_1607 __attribute__((section (".cygwin_dll_common"), shared)) = { + def_guard_pages:2, + mmap_storage_high:0x700000000000LL, + { + is_server:false, + needs_count_in_si_lpres2:false, + needs_query_information:false, + has_gaa_largeaddress_bug:false, + has_broken_alloc_console:true, + has_console_logon_sid:true, + has_precise_system_time:true, + has_microsoft_accounts:true, + has_processor_groups:true, + has_broken_prefetchvm:true, + has_new_pebteb_region:false, + has_broken_whoami:false, + has_unprivileged_createsymlink:false, + has_unbiased_interrupt_time:true, + has_precise_interrupt_time:true, + has_posix_unlink_semantics:false, + has_case_sensitive_dirs:false, + has_posix_rename_semantics:false, + no_msv1_0_s4u_logon_in_wow64:false, + has_con_24bit_colors:false, + has_con_broken_csi3j:false, + has_con_broken_il_dl:false, + has_con_esc_rep:false, + has_extended_mem_api:false, + has_tcp_fastopen:true, }, }; @@ -201,6 +238,7 @@ wincaps wincap_10_1703 __attribute__((section (".cygwin_dll_common"), shared)) = has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:true, }, }; @@ -232,6 +270,7 @@ wincaps wincap_10_1709 __attribute__((section (".cygwin_dll_common"), shared)) = has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:false, + has_tcp_fastopen:true, }, }; @@ -263,6 +302,7 @@ wincaps wincap_10_1803 __attribute__((section (".cygwin_dll_common"), shared)) = has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:true, + has_tcp_fastopen:true, }, }; @@ -294,6 +334,7 @@ wincaps wincap_10_1809 __attribute__((section (".cygwin_dll_common"), shared)) = has_con_broken_il_dl:false, has_con_esc_rep:false, has_extended_mem_api:true, + has_tcp_fastopen:true, }, }; @@ -325,6 +366,7 @@ wincaps wincap_10_1903 __attribute__((section (".cygwin_dll_common"), shared)) = has_con_broken_il_dl:true, has_con_esc_rep:true, has_extended_mem_api:true, + has_tcp_fastopen:true, }, }; @@ -378,6 +420,8 @@ wincapc::init () caps = &wincap_10_1709; else if (version.dwBuildNumber >= 15063) caps = &wincap_10_1703; + else if (version.dwBuildNumber >= 14393) + caps = &wincap_10_1607; else caps = & wincap_10_1507; } |