diff options
author | rrs <rrs@FreeBSD.org> | 2006-11-11 15:59:01 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2006-11-11 15:59:01 +0000 |
commit | e0c50feae8264926c5241ae08542f1f75ef7cc65 (patch) | |
tree | ad54f2c4385045522d51df03b3f6502d25221456 /sys/netinet/sctp_constants.h | |
parent | 0100d343f488d0d5c2e70c793182caa2fe89fcc0 (diff) | |
download | FreeBSD-src-e0c50feae8264926c5241ae08542f1f75ef7cc65.zip FreeBSD-src-e0c50feae8264926c5241ae08542f1f75ef7cc65.tar.gz |
Turns out we would reset the TSN seq counter during
a colliding INIT. This if fine except when we have
data outstanding... we basically reset it to the
previous value it was.. so then we end up assigning
the same TSN to two different data chunks.
This patch:
1) Finds a missing lock for when we change the stream
numbers during COOKIE and INIT-ACK processing.. we
were NOT locking the send_buffer.. which COULD cause
problems (found by inspection looking for <2>)
2) Fixes a case during a colliding INIT where we incorrectly
reset the sending Sequence thus in some cases duplicately
assigning a TSN.
3) Additional enhancments to logging so we can see strm/tsn in
the receiver AND new tracking to watch what the sender
is doing with TSN and STRM seq's.
Approved by: gnn
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r-- | sys/netinet/sctp_constants.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h index 605e0ad..3e927bb 100644 --- a/sys/netinet/sctp_constants.h +++ b/sys/netinet/sctp_constants.h @@ -149,8 +149,10 @@ __FBSDID("$FreeBSD$"); #define SCTP_UNKNOWN_MAX 101 #define SCTP_RANDY_STUFF 102 #define SCTP_RANDY_STUFF1 103 +#define SCTP_STRMOUT_LOG_ASSIGN 104 +#define SCTP_STRMOUT_LOG_SEND 105 -#define SCTP_LOG_MAX_TYPES 104 +#define SCTP_LOG_MAX_TYPES 106 /* * To turn on various logging, you must first define SCTP_STAT_LOGGING. Then * to get something to log you define one of the logging defines i.e. |