summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSridhar Samudrala <sridhar@dyn9-47-18-140.beaverton.ibm.com>2002-11-03 18:27:11 -0800
committerSridhar Samudrala <sridhar@dyn9-47-18-140.beaverton.ibm.com>2002-11-03 18:27:11 -0800
commit26e2d0a7afe1d4874acad61391736c6aa636c4e7 (patch)
tree1c97a1031f8d70bae0a2cefadf363de103798277 /include
parentd979fc874be7dadb48c0829aa631e444dd4c87e3 (diff)
parent63c6e5b3eb1fab2c4ddd853959791e3537232c50 (diff)
Merge dyn9-47-18-140.beaverton.ibm.com:/home/sridhar/BK/sctp-2.5
into dyn9-47-18-140.beaverton.ibm.com:/home/sridhar/BK/lksctp-2.5.45
Diffstat (limited to 'include')
-rw-r--r--include/net/sctp/command.h2
-rw-r--r--include/net/sctp/sctp.h2
-rw-r--r--include/net/sctp/sm.h1
-rw-r--r--include/net/sctp/structs.h14
4 files changed, 12 insertions, 7 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h
index d299eee377c1..67524f0b1a03 100644
--- a/include/net/sctp/command.h
+++ b/include/net/sctp/command.h
@@ -27,6 +27,7 @@
*
* La Monte H.P. Yarroll <piggy@acm.org>
* Karl Knutson <karl@athena.chicago.il.us>
+ * Ardelle Fan <ardelle.fan@intel.com>
*
* Any bugs reported given to us we will try to fix... any fixes shared will
* be incorporated into the next SCTP release.
@@ -72,6 +73,7 @@ typedef enum {
SCTP_CMD_STRIKE, /* Mark a strike against a transport. */
SCTP_CMD_TRANSMIT, /* Transmit the outqueue. */
SCTP_CMD_HB_TIMERS_START, /* Start the heartbeat timers. */
+ SCTP_CMD_HB_TIMERS_UPDATE, /* Update the heartbeat timers. */
SCTP_CMD_TRANSPORT_RESET, /* Reset the status of a transport. */
SCTP_CMD_TRANSPORT_ON, /* Mark the transport as active. */
SCTP_CMD_REPORT_ERROR, /* Pass this error back out of the sm. */
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index 43511bc4775f..7b261af05ad4 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -142,7 +142,7 @@ extern int sctp_primitive_ASSOCIATE(sctp_association_t *, void *arg);
extern int sctp_primitive_SHUTDOWN(sctp_association_t *, void *arg);
extern int sctp_primitive_ABORT(sctp_association_t *, void *arg);
extern int sctp_primitive_SEND(sctp_association_t *, void *arg);
-
+extern int sctp_primitive_REQUESTHEARTBEAT(sctp_association_t *, void *arg);
/*
* sctp_crc32c.c
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h
index 755b09375932..9c5d678b2b14 100644
--- a/include/net/sctp/sm.h
+++ b/include/net/sctp/sm.h
@@ -157,6 +157,7 @@ sctp_state_fn_t sctp_sf_shutdown_ack_sent_prm_abort;
sctp_state_fn_t sctp_sf_error_closed;
sctp_state_fn_t sctp_sf_error_shutdown;
sctp_state_fn_t sctp_sf_ignore_primitive;
+sctp_state_fn_t sctp_sf_do_prm_requestheartbeat;
/* Prototypes for other event state functions. */
sctp_state_fn_t sctp_sf_do_9_2_start_shutdown;
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 8d3987f47037..505e9a54bb39 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -685,13 +685,15 @@ struct SCTP_transport {
*/
unsigned long last_time_ecne_reduced;
- /* state : The current state of this destination,
- * : i.e. DOWN, UP, ALLOW-HB, NO-HEARTBEAT, etc.
+ /* active : The current active state of this destination,
+ * : i.e. DOWN, UP, etc.
*/
- struct {
- int active;
- int hb_allowed;
- } state;
+ int active;
+
+ /* hb_allowed : The current heartbeat state of this destination,
+ * : i.e. ALLOW-HB, NO-HEARTBEAT, etc.
+ */
+ int hb_allowed;
/* These are the error stats for this destination. */