diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-01-16 16:42:40 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-01-16 16:42:40 +0000 |
commit | 28a0b481577d12bb962d3c06f7f3a838efb48b12 (patch) | |
tree | e1bfc3131d5a8e7836cb78d99f5ec26425ab5223 /sys/netinet/sctp_constants.h | |
parent | bc1e3287c3f8c8833ec8e749018df75bd7cc31e1 (diff) | |
download | FreeBSD-src-28a0b481577d12bb962d3c06f7f3a838efb48b12.zip FreeBSD-src-28a0b481577d12bb962d3c06f7f3a838efb48b12.tar.gz |
MFC r287669:
Ensure that ERROR chunks are always padded by implementing this
in the routine, which queues an ERROR chunk, instead on relyinh
on the callers to do so. Since one caller missed this, this actially
fixes a bug.
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r-- | sys/netinet/sctp_constants.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h index 760c3b4..a26bc5b 100644 --- a/sys/netinet/sctp_constants.h +++ b/sys/netinet/sctp_constants.h @@ -66,6 +66,8 @@ __FBSDID("$FreeBSD$"); */ #define SCTP_LARGEST_INIT_ACCEPTED (65535 - 2048) +/* Largest length of a chunk */ +#define SCTP_MAX_CHUNK_LENGTH 0xffff /* Number of addresses where we just skip the counting */ #define SCTP_COUNT_LIMIT 40 |