Bug 15003

Summary: Define TCP_FASTOPEN
Product: glibc Reporter: Federico Reghenzani <federico.dev>
Component: networkAssignee: Andreas Jaeger <aj>
Status: RESOLVED FIXED    
Severity: normal CC: aj, federico.dev
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Federico Reghenzani 2013-01-08 07:41:52 UTC
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.
Comment 2 Federico Reghenzani 2013-01-10 22:55:32 UTC
Define also MSG_FASTOPEN as 0x20000000. Thank you!
Comment 3 Andreas Jaeger 2013-01-11 09:16:16 UTC
Patch send out..

Anything else that's needed?
Comment 4 Andreas Jaeger 2013-01-11 10:54:56 UTC
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.