diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-05-05 20:07:33 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-05-05 20:07:33 +0000 |
commit | 17adf2710fcd076258d2240957b3c6ddefa869e2 (patch) | |
tree | 96dc355e21591c8115669083ca68c90c62f109b0 /sys/netinet/sctp_header.h | |
parent | 9895b5ca9df1f0d045ee00e77007e80d4c202ca4 (diff) | |
download | FreeBSD-src-17adf2710fcd076258d2240957b3c6ddefa869e2.zip FreeBSD-src-17adf2710fcd076258d2240957b3c6ddefa869e2.tar.gz |
Honor SCTP_ENABLE_STREAM_RESET socket option when processing incoming
requests. Fix also the provided result in the response and use names
as specified in RFC 6525.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_header.h')
-rw-r--r-- | sys/netinet/sctp_header.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/netinet/sctp_header.h b/sys/netinet/sctp_header.h index 1d92b65..a5a1718 100644 --- a/sys/netinet/sctp_header.h +++ b/sys/netinet/sctp_header.h @@ -499,12 +499,13 @@ struct sctp_stream_reset_add_strm { uint16_t reserved; } SCTP_PACKED; -#define SCTP_STREAM_RESET_NOTHING 0x00000000 /* Nothing for me to do */ -#define SCTP_STREAM_RESET_PERFORMED 0x00000001 /* Did it */ -#define SCTP_STREAM_RESET_REJECT 0x00000002 /* refused to do it */ -#define SCTP_STREAM_RESET_ERROR_STR 0x00000003 /* bad Stream no */ -#define SCTP_STREAM_RESET_TRY_LATER 0x00000004 /* collision, try again */ -#define SCTP_STREAM_RESET_BAD_SEQNO 0x00000005 /* bad str-reset seq no */ +#define SCTP_STREAM_RESET_RESULT_NOTHING_TO_DO 0x00000000 /* XXX: unused */ +#define SCTP_STREAM_RESET_RESULT_PERFORMED 0x00000001 +#define SCTP_STREAM_RESET_RESULT_DENIED 0x00000002 +#define SCTP_STREAM_RESET_RESULT_ERR__WRONG_SSN 0x00000003 /* XXX: unused */ +#define SCTP_STREAM_RESET_RESULT_ERR_IN_PROGRESS 0x00000004 +#define SCTP_STREAM_RESET_RESULT_ERR_BAD_SEQNO 0x00000005 +#define SCTP_STREAM_RESET_RESULT_IN_PROGRESS 0x00000006 /* XXX: unused */ /* * convience structures, note that if you are making a request for specific |