From kernel 3.6 there is the new TCP_FASTOPEN constant defined in <linux/tcp.h> to permit TCP Fast Open connection as described in this article: https://lwn.net/Articles/508865/ That costant should be defined also in glibc, to permit set it with setsockopt(). I think the file is /sysdeps/gnu/netinet/tcp.h, but I'm not sure.
Resolved in http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e83d72988d89378e7c70a1b7ba0b450a699ea70a
Define also MSG_FASTOPEN as 0x20000000. Thank you!
Patch send out.. Anything else that's needed?
Fixed for both 2.17 and 2.18. on 2.18 with this commit id: commit c6fe55cf6089fc5cf1cea15fc7e1c9a8b90d9fda Author: Andreas Jaeger <aj@suse.de> Date: Fri Jan 11 11:53:13 2013 +0100 Add MSG_FASTOPEN [BZ #15003] * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New value. Sync with Linux 3.7.