diff options
author | tuexen <tuexen@FreeBSD.org> | 2010-12-30 16:23:13 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2010-12-30 16:23:13 +0000 |
commit | e71b6473c68e46ca3d024d8bd06702b8b854aa25 (patch) | |
tree | aee425cad833ef1e55fbab34039da8a847c62f7f /sys/netinet/sctp_output.c | |
parent | aa5a8ce5f29eaca61906a4f8503ed3c76ccb5544 (diff) | |
download | FreeBSD-src-e71b6473c68e46ca3d024d8bd06702b8b854aa25.zip FreeBSD-src-e71b6473c68e46ca3d024d8bd06702b8b854aa25.tar.gz |
Fix three bugs related to the sequence number wrap-around affecting
the processing of ECNE and ASCONF chunks.
Reviewed by: rrs
MFC after: 3 days.
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r-- | sys/netinet/sctp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c index 4ae66ad..abe124e 100644 --- a/sys/netinet/sctp_output.c +++ b/sys/netinet/sctp_output.c @@ -6477,7 +6477,7 @@ sctp_toss_old_asconf(struct sctp_tcb *stcb) if (chk->rec.chunk_id.id == SCTP_ASCONF) { if (chk->data) { acp = mtod(chk->data, struct sctp_asconf_chunk *); - if (compare_with_wrap(ntohl(acp->serial_number), stcb->asoc.asconf_seq_out_acked, MAX_SEQ)) { + if (compare_with_wrap(ntohl(acp->serial_number), stcb->asoc.asconf_seq_out_acked, MAX_TSN)) { /* Not Acked yet */ break; } |