diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-12 19:44:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-12 22:58:12 -0400 |
commit | 10feb428a5045d5eb18a5d755fbb8f0cc9645626 (patch) | |
tree | db5503859144757ada4ec8c7222cc41c9cd7db9d /include/net/tcp_states.h | |
parent | bd337c581b2b0d933d37f664bf55b342577fed3a (diff) |
inet: add TCP_NEW_SYN_RECV state
TCP_SYN_RECV state is currently used by fast open sockets.
Initial TCP requests (the pseudo sockets created when a SYN is received)
are not yet associated to a state. They are attached to their parent,
and the parent is in TCP_LISTEN state.
This commit adds TCP_NEW_SYN_RECV state, so that we can convert
TCP stack to a different schem gradually.
This state is not exported to user space.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp_states.h')
-rw-r--r-- | include/net/tcp_states.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/tcp_states.h b/include/net/tcp_states.h index b0b645988bd8..50e78a74d0df 100644 --- a/include/net/tcp_states.h +++ b/include/net/tcp_states.h | |||
@@ -25,6 +25,7 @@ enum { | |||
25 | TCP_LAST_ACK, | 25 | TCP_LAST_ACK, |
26 | TCP_LISTEN, | 26 | TCP_LISTEN, |
27 | TCP_CLOSING, /* Now a valid state */ | 27 | TCP_CLOSING, /* Now a valid state */ |
28 | TCP_NEW_SYN_RECV, | ||
28 | 29 | ||
29 | TCP_MAX_STATES /* Leave at the end! */ | 30 | TCP_MAX_STATES /* Leave at the end! */ |
30 | }; | 31 | }; |
@@ -44,7 +45,8 @@ enum { | |||
44 | TCPF_CLOSE_WAIT = (1 << 8), | 45 | TCPF_CLOSE_WAIT = (1 << 8), |
45 | TCPF_LAST_ACK = (1 << 9), | 46 | TCPF_LAST_ACK = (1 << 9), |
46 | TCPF_LISTEN = (1 << 10), | 47 | TCPF_LISTEN = (1 << 10), |
47 | TCPF_CLOSING = (1 << 11) | 48 | TCPF_CLOSING = (1 << 11), |
49 | TCPF_NEW_SYN_RECV = (1 << 12), | ||
48 | }; | 50 | }; |
49 | 51 | ||
50 | #endif /* _LINUX_TCP_STATES_H */ | 52 | #endif /* _LINUX_TCP_STATES_H */ |