aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_uio.h
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2007-09-13 14:43:54 +0000
committerRandall Stewart <rrs@FreeBSD.org>2007-09-13 14:43:54 +0000
commitb27a6b7d735680e373a3889d3f4a2af3697a89a4 (patch)
tree1bf870312924584217762bb4c4c0f3cd5ec65aab /sys/netinet/sctp_uio.h
parent04ee05e815ad0dd523b5d492bdfeb9ab8da92b10 (diff)
downloadsrc-b27a6b7d735680e373a3889d3f4a2af3697a89a4.tar.gz
src-b27a6b7d735680e373a3889d3f4a2af3697a89a4.zip
- DF bit was on for COOKIE-ECHO chunks. This is
incorrect and should be OFF letting IP fragment large cookie-echos. - Rename sysctl variable logging to log_level. - Fix description of sysctl variable stats. - Add sysctl variable log to make sctp_log readable via sysctl mechanism (this is by compile switch and targets non KTR platforms or when someone wants to do performance wise tracing). - Removed debug code Approved by: re@freebsd.org (B Mah)
Notes
Notes: svn path=/head/; revision=172157
Diffstat (limited to 'sys/netinet/sctp_uio.h')
-rw-r--r--sys/netinet/sctp_uio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/netinet/sctp_uio.h b/sys/netinet/sctp_uio.h
index 477ef582832f..72bebc750a20 100644
--- a/sys/netinet/sctp_uio.h
+++ b/sys/netinet/sctp_uio.h
@@ -1017,6 +1017,22 @@ struct xsctp_raddr {
struct sctp_timeval start_time; /* sctpAssocLocalRemEntry 8 */
};
+#define SCTP_MAX_LOGGING_SIZE 30000
+#define SCTP_TRACE_PARAMS 6 /* This number MUST be even */
+
+struct sctp_log_entry {
+ u_int64_t timestamp;
+ uint32_t subsys;
+ uint32_t padding;
+ uint32_t params[SCTP_TRACE_PARAMS];
+};
+
+struct sctp_log {
+ struct sctp_log_entry entry[SCTP_MAX_LOGGING_SIZE];
+ uint32_t index;
+ uint32_t padding;
+};
+
/*
* Kernel defined for sctp_send
*/