diff options
| author | Sridhar Samudrala <sri@us.ibm.com> | 2004-07-22 09:13:05 -0700 |
|---|---|---|
| committer | Sridhar Samudrala <sri@us.ibm.com> | 2004-07-22 09:13:05 -0700 |
| commit | bf69b824b313e35bff94b4595dd167cb728b3f8d (patch) | |
| tree | 8e454be8ba9d2d26526364596ffba965bf71a438 /include/net | |
| parent | 9ea9bd7ce2cada1bd5ff27b2531f8455dddeddf5 (diff) | |
[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 <jhh@lucent.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/sctp/constants.h | 4 | ||||
| -rw-r--r-- | include/net/sctp/sm.h | 3 |
2 files changed, 7 insertions, 0 deletions
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 *); |
