diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2007-05-30 17:39:45 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2007-05-30 17:39:45 +0000 |
commit | 0696e1203e263e97d808da8f7064c68ceb8147c2 (patch) | |
tree | 88cefe357ba00902c5e5d6c978baeaf9a7205cf6 /sys/netinet/sctp_os_bsd.h | |
parent | 4257f25c06b2fa059994ce57988e80803d326f34 (diff) | |
download | src-0696e1203e263e97d808da8f7064c68ceb8147c2.tar.gz src-0696e1203e263e97d808da8f7064c68ceb8147c2.zip |
- Fix a memory overwrite when the mapping array
is expanded, size of expansion was not taken int consideration.
- Fix so vtag hash is 1 bigger so that it modulo's out
correctly, avoids a panic when restart with right modulo happens.
- do not dereference stcb when control->do_not_ref_stcb is set
- Fix up packet logging to not often use a lock and also to
add to options.
- Fix some logging option duplication in the sctputil.h
Notes
Notes:
svn path=/head/; revision=170138
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r-- | sys/netinet/sctp_os_bsd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index 57fc39d61810..c2a111519b0e 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -260,6 +260,15 @@ typedef struct callout sctp_os_timer_t; } else if ((m->m_flags & M_EXT) == 0) { \ M_ALIGN(m, len); \ } + +/* We make it so if you have up to 4 threads + * writting based on the default size of + * the packet log 65 k, that would be + * 4 16k packets before we would hit + * a problem. + */ +#define SCTP_PKTLOG_WRITERS_NEED_LOCK 3 + /*************************/ /* MTU */ /*************************/ |