From bf69b824b313e35bff94b4595dd167cb728b3f8d Mon Sep 17 00:00:00 2001 From: Sridhar Samudrala Date: Thu, 22 Jul 2004 09:13:05 -0700 Subject: [SCTP] Fix data not being delivered to user in SHUTDOWN_SENT state. Also cleaned up sctp_sf_eat_data_6_2() and sctp_sf_eat_data_fast_4_4() as they have a lot of common code. Signed-off-by: Jorge Hernandez Signed-off-by: Sridhar Samudrala --- include/net/sctp/constants.h | 4 ++++ include/net/sctp/sm.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h index c611176fbd44..bc1d9a63dd02 100644 --- a/include/net/sctp/constants.h +++ b/include/net/sctp/constants.h @@ -175,6 +175,10 @@ typedef enum { SCTP_IERROR_BAD_TAG, SCTP_IERROR_BIG_GAP, SCTP_IERROR_DUP_TSN, + SCTP_IERROR_HIGH_TSN, + SCTP_IERROR_IGNORE_TSN, + SCTP_IERROR_NO_DATA, + SCTP_IERROR_BAD_STREAM, } sctp_ierror_t; diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index a73cea97098e..fc617506482a 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h @@ -322,6 +322,9 @@ void sctp_send_stale_cookie_err(const struct sctp_endpoint *ep, const struct sctp_chunk *chunk, sctp_cmd_seq_t *commands, struct sctp_chunk *err_chunk); +int sctp_eat_data(const struct sctp_association *asoc, + struct sctp_chunk *chunk, + sctp_cmd_seq_t *commands); /* 3rd level prototypes */ __u32 sctp_generate_tag(const struct sctp_endpoint *); -- cgit v1.2.3