projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc443c3
)
add MSG_FASTOPEN sendmsg/sendto flag to socket.h
author
Szabolcs Nagy
<nsz@port70.net>
Fri, 26 Jun 2015 20:27:37 +0000
(20:27 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 25 Jan 2016 00:18:02 +0000
(19:18 -0500)
This was new in linux 3.5 in commit
cf60af03ca4e71134206809ea892e49b92a88896
,
needed for tcp fastopen feature (sending data in TCP SYN packet).
include/sys/socket.h
patch
|
blob
|
history
diff --git
a/include/sys/socket.h
b/include/sys/socket.h
index 40de336956ee9dabd38533c416598a31740ce4eb..8a015a86378256530dd11ac2b838aeb4d1fbb191 100644
(file)
--- a/
include/sys/socket.h
+++ b/
include/sys/socket.h
@@
-255,6
+255,7
@@
struct linger
#define MSG_NOSIGNAL 0x4000
#define MSG_MORE 0x8000
#define MSG_WAITFORONE 0x10000
+#define MSG_FASTOPEN 0x20000000
#define MSG_CMSG_CLOEXEC 0x40000000
#define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1))