* [PATCH 3/3][SCTP]: Increment error counters on user requested HBs.
@ 2007-03-19 18:38 Sridhar Samudrala
2007-03-20 0:02 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sridhar Samudrala @ 2007-03-19 18:38 UTC (permalink / raw)
To: davem; +Cc: netdev, lksctp-developers
[SCTP]: Increment error counters on user requested HBs.
2960bis states (Section 8.3):
D) Request an on-demand HEARTBEAT on a specific destination transport
address of a given association.
The endpoint should increment the respective error counter of the
destination transport address each time a HEARTBEAT is sent to that
address and not acknowledged within one RTO.
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
---
net/sctp/sm_statefuns.c | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index 70c39ea..e9097cf 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -4342,8 +4342,24 @@ sctp_disposition_t sctp_sf_do_prm_reques
void *arg,
sctp_cmd_seq_t *commands)
{
- return sctp_sf_heartbeat(ep, asoc, type, (struct sctp_transport *)arg,
- commands);
+ if (SCTP_DISPOSITION_NOMEM == sctp_sf_heartbeat(ep, asoc, type,
+ (struct sctp_transport *)arg, commands))
+ return SCTP_DISPOSITION_NOMEM;
+
+ /*
+ * RFC 2960 (bis), section 8.3
+ *
+ * D) Request an on-demand HEARTBEAT on a specific destination
+ * transport address of a given association.
+ *
+ * The endpoint should increment the respective error counter of
+ * the destination transport address each time a HEARTBEAT is sent
+ * to that address and not acknowledged within one RTO.
+ *
+ */
+ sctp_add_cmd_sf(commands, SCTP_CMD_TRANSPORT_RESET,
+ SCTP_TRANSPORT(arg));
+ return SCTP_DISPOSITION_CONSUME;
}
/*
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3][SCTP]: Increment error counters on user requested HBs.
2007-03-19 18:38 [PATCH 3/3][SCTP]: Increment error counters on user requested HBs Sridhar Samudrala
@ 2007-03-20 0:02 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-03-20 0:02 UTC (permalink / raw)
To: sri; +Cc: netdev, lksctp-developers
From: Sridhar Samudrala <sri@us.ibm.com>
Date: Mon, 19 Mar 2007 11:38:10 -0700
> [SCTP]: Increment error counters on user requested HBs.
>
> 2960bis states (Section 8.3):
>
> D) Request an on-demand HEARTBEAT on a specific destination transport
> address of a given association.
>
> The endpoint should increment the respective error counter of the
> destination transport address each time a HEARTBEAT is sent to that
> address and not acknowledged within one RTO.
>
> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
> Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-20 0:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-19 18:38 [PATCH 3/3][SCTP]: Increment error counters on user requested HBs Sridhar Samudrala
2007-03-20 0:02 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.