aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2013-06-18 03:08:07 -0400
committerSimon Horman <horms@verge.net.au>2013-06-26 05:01:46 -0400
commit61e7c420b4b2a797ac209106ba743ab6ebe984d8 (patch)
tree0d3b725153fad4a82eb488085e9b01de3c14d2d9 /include/net
parentc6c96c188336b2b95d5f14facd101f1e4165a9d3 (diff)
ipvs: replace the SCTP state machine
Convert the SCTP state table, so that it is more readable. Change the states to be according to the diagram in RFC 2960 and add more states suitable for middle box. Still, such change in states adds incompatibility if systems in sync setup include this change and others do not include it. With this change we also have proper transitions in INPUT-ONLY mode (DR/TUN) where we see packets only from client. Now we should not switch to 10-second CLOSED state at a time when we should stay in ESTABLISHED state. The short names for states are because we have 16-char space in ipvsadm and 11-char limit for the connection list format. It is a sequence of the TCP implementation where the longest state name is ESTABLISHED. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip_vs.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 95860dfdfbe3..e667df171003 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -380,17 +380,18 @@ enum {
380 */ 380 */
381enum ip_vs_sctp_states { 381enum ip_vs_sctp_states {
382 IP_VS_SCTP_S_NONE, 382 IP_VS_SCTP_S_NONE,
383 IP_VS_SCTP_S_INIT_CLI, 383 IP_VS_SCTP_S_INIT1,
384 IP_VS_SCTP_S_INIT_SER, 384 IP_VS_SCTP_S_INIT,
385 IP_VS_SCTP_S_INIT_ACK_CLI, 385 IP_VS_SCTP_S_COOKIE_SENT,
386 IP_VS_SCTP_S_INIT_ACK_SER, 386 IP_VS_SCTP_S_COOKIE_REPLIED,
387 IP_VS_SCTP_S_ECHO_CLI, 387 IP_VS_SCTP_S_COOKIE_WAIT,
388 IP_VS_SCTP_S_ECHO_SER, 388 IP_VS_SCTP_S_COOKIE,
389 IP_VS_SCTP_S_COOKIE_ECHOED,
389 IP_VS_SCTP_S_ESTABLISHED, 390 IP_VS_SCTP_S_ESTABLISHED,
390 IP_VS_SCTP_S_SHUT_CLI, 391 IP_VS_SCTP_S_SHUTDOWN_SENT,
391 IP_VS_SCTP_S_SHUT_SER, 392 IP_VS_SCTP_S_SHUTDOWN_RECEIVED,
392 IP_VS_SCTP_S_SHUT_ACK_CLI, 393 IP_VS_SCTP_S_SHUTDOWN_ACK_SENT,
393 IP_VS_SCTP_S_SHUT_ACK_SER, 394 IP_VS_SCTP_S_REJECTED,
394 IP_VS_SCTP_S_CLOSED, 395 IP_VS_SCTP_S_CLOSED,
395 IP_VS_SCTP_S_LAST 396 IP_VS_SCTP_S_LAST
396}; 397};