diff options
author | tuexen <tuexen@FreeBSD.org> | 2010-04-03 15:40:14 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2010-04-03 15:40:14 +0000 |
commit | 238a37de82c68689f86b353ea628510ea7de86fb (patch) | |
tree | 910b3788649fd9cf8fa48c1f3ecdecaeeca07e09 /sys/netinet/sctp_var.h | |
parent | 7fe3c0a85bf91b64ec309ff2b7806fef53de39e0 (diff) | |
download | FreeBSD-src-238a37de82c68689f86b353ea628510ea7de86fb.zip FreeBSD-src-238a37de82c68689f86b353ea628510ea7de86fb.tar.gz |
* Fix some race condition in SACK/NR-SACK processing.
* Fix handling of mapping arrays when draining mbufs or processing
FORWARD-TSN chunks.
* Cleanup code (no duplicate code anymore for SACKs and NR-SACKs).
Part of this code was developed together with rrs.
MFC after: 2 weeks.
Diffstat (limited to 'sys/netinet/sctp_var.h')
-rw-r--r-- | sys/netinet/sctp_var.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h index 1ccccf3..bff7f5d 100644 --- a/sys/netinet/sctp_var.h +++ b/sys/netinet/sctp_var.h @@ -108,7 +108,7 @@ extern struct pr_usrreqs sctp_usrreqs; sctp_auth_key_release((_stcb), (_chk)->auth_keyid); \ (_chk)->holds_key_ref = 0; \ } \ - if(_stcb) { \ + if (_stcb) { \ SCTP_TCB_LOCK_ASSERT((_stcb)); \ if ((_chk)->whoTo) { \ sctp_free_remote_addr((_chk)->whoTo); \ @@ -231,7 +231,7 @@ extern struct pr_usrreqs sctp_usrreqs; #ifdef SCTP_FS_SPEC_LOG #define sctp_total_flight_decrease(stcb, tp1) do { \ - if(stcb->asoc.fs_index > SCTP_FS_SPEC_LOG_SIZE) \ + if (stcb->asoc.fs_index > SCTP_FS_SPEC_LOG_SIZE) \ stcb->asoc.fs_index = 0;\ stcb->asoc.fslog[stcb->asoc.fs_index].total_flight = stcb->asoc.total_flight; \ stcb->asoc.fslog[stcb->asoc.fs_index].tsn = tp1->rec.data.TSN_seq; \ @@ -252,7 +252,7 @@ extern struct pr_usrreqs sctp_usrreqs; } while (0) #define sctp_total_flight_increase(stcb, tp1) do { \ - if(stcb->asoc.fs_index > SCTP_FS_SPEC_LOG_SIZE) \ + if (stcb->asoc.fs_index > SCTP_FS_SPEC_LOG_SIZE) \ stcb->asoc.fs_index = 0;\ stcb->asoc.fslog[stcb->asoc.fs_index].total_flight = stcb->asoc.total_flight; \ stcb->asoc.fslog[stcb->asoc.fs_index].tsn = tp1->rec.data.TSN_seq; \ |