diff options
| author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-12-14 02:25:56 -0500 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 16:10:57 -0500 |
| commit | 22712813620fa8e682dbfb253a60ca0131da1e07 (patch) | |
| tree | d3ed724002ecb7f028666d7fafbfc4fb96297182 | |
| parent | d8313f5ca2b1f86b7df6c99fc4b3fffa1f84e92b (diff) | |
[TCP]: Move the TCPF_ enum to tcp_states.h
Upcoming patches will make, for instance, ip_sockglue.c need just this enum
and not all of tcp.h.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | include/linux/tcp.h | 16 | ||||
| -rw-r--r-- | include/net/tcp_states.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 4e1434007f44..da38eea1994b 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h | |||
| @@ -55,22 +55,6 @@ struct tcphdr { | |||
| 55 | __u16 urg_ptr; | 55 | __u16 urg_ptr; |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | #define TCP_ACTION_FIN (1 << 7) | ||
| 59 | |||
| 60 | enum { | ||
| 61 | TCPF_ESTABLISHED = (1 << 1), | ||
| 62 | TCPF_SYN_SENT = (1 << 2), | ||
| 63 | TCPF_SYN_RECV = (1 << 3), | ||
| 64 | TCPF_FIN_WAIT1 = (1 << 4), | ||
| 65 | TCPF_FIN_WAIT2 = (1 << 5), | ||
| 66 | TCPF_TIME_WAIT = (1 << 6), | ||
| 67 | TCPF_CLOSE = (1 << 7), | ||
| 68 | TCPF_CLOSE_WAIT = (1 << 8), | ||
| 69 | TCPF_LAST_ACK = (1 << 9), | ||
| 70 | TCPF_LISTEN = (1 << 10), | ||
| 71 | TCPF_CLOSING = (1 << 11) | ||
| 72 | }; | ||
| 73 | |||
| 74 | /* | 58 | /* |
| 75 | * The union cast uses a gcc extension to avoid aliasing problems | 59 | * The union cast uses a gcc extension to avoid aliasing problems |
| 76 | * (union is compatible to any of its members) | 60 | * (union is compatible to any of its members) |
diff --git a/include/net/tcp_states.h b/include/net/tcp_states.h index b9d4176b2d15..b0b645988bd8 100644 --- a/include/net/tcp_states.h +++ b/include/net/tcp_states.h | |||
| @@ -31,4 +31,20 @@ enum { | |||
| 31 | 31 | ||
| 32 | #define TCP_STATE_MASK 0xF | 32 | #define TCP_STATE_MASK 0xF |
| 33 | 33 | ||
| 34 | #define TCP_ACTION_FIN (1 << 7) | ||
| 35 | |||
| 36 | enum { | ||
| 37 | TCPF_ESTABLISHED = (1 << 1), | ||
| 38 | TCPF_SYN_SENT = (1 << 2), | ||
| 39 | TCPF_SYN_RECV = (1 << 3), | ||
| 40 | TCPF_FIN_WAIT1 = (1 << 4), | ||
| 41 | TCPF_FIN_WAIT2 = (1 << 5), | ||
| 42 | TCPF_TIME_WAIT = (1 << 6), | ||
| 43 | TCPF_CLOSE = (1 << 7), | ||
| 44 | TCPF_CLOSE_WAIT = (1 << 8), | ||
| 45 | TCPF_LAST_ACK = (1 << 9), | ||
| 46 | TCPF_LISTEN = (1 << 10), | ||
| 47 | TCPF_CLOSING = (1 << 11) | ||
| 48 | }; | ||
| 49 | |||
| 34 | #endif /* _LINUX_TCP_STATES_H */ | 50 | #endif /* _LINUX_TCP_STATES_H */ |
