aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_indata.h
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2016-12-07 19:30:59 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2016-12-07 19:30:59 +0000
commit49656eefc805355c535cc70d792ba32d945a96ee (patch)
tree2a931ac75c80b63dfdf44f646a459b112cd78bbb /sys/netinet/sctp_indata.h
parent7dc45d65e3b94be6d3a6ebeb0cc15dc1a5b7fb71 (diff)
downloadsrc-49656eefc805355c535cc70d792ba32d945a96ee.tar.gz
src-49656eefc805355c535cc70d792ba32d945a96ee.zip
Cleanup the names of SSN, SID, TSN, FSN, PPID and MID.
This made a couple of bugs visible in handling SSN wrap-arounds when using DATA chunks. Now bulk transfer seems to work fine... This fixes the issue reported in https://github.com/sctplab/usrsctp/issues/111 MFC after: 1 week
Notes
Notes: svn path=/head/; revision=309682
Diffstat (limited to 'sys/netinet/sctp_indata.h')
-rw-r--r--sys/netinet/sctp_indata.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/netinet/sctp_indata.h b/sys/netinet/sctp_indata.h
index 162ca905c324..e277ae8869df 100644
--- a/sys/netinet/sctp_indata.h
+++ b/sys/netinet/sctp_indata.h
@@ -42,20 +42,19 @@ struct sctp_queued_to_read *
sctp_build_readq_entry(struct sctp_tcb *stcb,
struct sctp_nets *net,
uint32_t tsn, uint32_t ppid,
- uint32_t context, uint16_t stream_no,
- uint32_t stream_seq, uint8_t flags,
+ uint32_t context, uint16_t sid,
+ uint32_t mid, uint8_t flags,
struct mbuf *dm);
-#define sctp_build_readq_entry_mac(_ctl, in_it, context, net, tsn, ppid, stream_no, stream_seq, flags, dm, tfsn, msgid) do { \
+#define sctp_build_readq_entry_mac(_ctl, in_it, context, net, tsn, ppid, sid, flags, dm, tfsn, mid) do { \
if (_ctl) { \
atomic_add_int(&((net)->ref_count), 1); \
memset(_ctl, 0, sizeof(struct sctp_queued_to_read)); \
- (_ctl)->sinfo_stream = stream_no; \
- (_ctl)->sinfo_ssn = stream_seq; \
+ (_ctl)->sinfo_stream = sid; \
TAILQ_INIT(&_ctl->reasm); \
(_ctl)->top_fsn = tfsn; \
- (_ctl)->msg_id = msgid; \
+ (_ctl)->mid = mid; \
(_ctl)->sinfo_flags = (flags << 8); \
(_ctl)->sinfo_ppid = ppid; \
(_ctl)->sinfo_context = context; \