: Separate protocol states into general/specific
PATCH 30/43 : Separate protocol states into general/specific
[DCCP]: Separate protocol states into general/specific
This prepares a separation of DCCP protocol states into
* those which have a generalisation as `stream' states and
* those which are specific to DCCP and do not generalise well.
For this purpose, the existing TCP_MAX_STATES is inserted as separator; everything between TCP_MAX_STATES and DCCP_MAX_STATES is private to DCCP.
Signed-off-by Gerrit Renker <[email protected]>
--- include/linux/dccp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/linux/dccp.h +3 -1
@@ -242,7 +242,9 @@ enum dccp_state {DCCP_CLOSING =TCP_CLOSING ,DCCP_TIME_WAIT =TCP_TIME_WAIT ,DCCP_CLOSED =TCP_CLOSE , - DCCP_MAX_STATES = TCP_MAX_STATES, +/* Everything below here is specific to DCCP only */ +DCCP_INTRINSICS =TCP_MAX_STATES , + DCCP_MAX_STATES };#define DCCP_STATE_MASK 0xf