|
|
@ -13,7 +13,11 @@ ssize_t socket_fastopen_connect6(int s,const char* ip,uint16 port,uint32_t scope
|
|
|
|
int r;
|
|
|
|
int r;
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
int r=socket_send6_flag(s,buf,len,ip,port,scope_id,MSG_FASTOPEN);
|
|
|
|
int r;
|
|
|
|
|
|
|
|
if (len)
|
|
|
|
|
|
|
|
r=socket_send6_flag(s,buf,len,ip,port,scope_id,MSG_FASTOPEN);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
r=socket_connect6(s,ip,port,scope_id);
|
|
|
|
if (r==-1 && errno==ENOTCONN) {
|
|
|
|
if (r==-1 && errno==ENOTCONN) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/* apparently the kernel does not support TCP fast open */
|
|
|
|
/* apparently the kernel does not support TCP fast open */
|
|
|
|