Bug 15003 - Define TCP_FASTOPEN
Summary: Define TCP_FASTOPEN
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: network (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Andreas Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 07:41 UTC by Federico Reghenzani
Modified: 2014-06-13 19:07 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.