aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_stacks/sack_filter.c
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2019-12-17 16:08:07 +0000
committerRandall Stewart <rrs@FreeBSD.org>2019-12-17 16:08:07 +0000
commit1cf55767b800492f15d2d49884f78f05506049c0 (patch)
tree0d634265921d2276fbd6722431a2e137e2b29851 /sys/netinet/tcp_stacks/sack_filter.c
parentc7b0edf219290a9a77a4c59987b5783061ae19c9 (diff)
downloadsrc-1cf55767b800492f15d2d49884f78f05506049c0.tar.gz
src-1cf55767b800492f15d2d49884f78f05506049c0.zip
This commit is a bit of a re-arrange of deck chairs. It
gets both rack and bbr ready for the completion of the STATs framework in FreeBSD. For now if you don't have both NF_stats and stats on it disables them. As soon as the rest of the stats framework lands we can remove that restriction and then just uses stats when defined. Sponsored by: Netflix Inc. Differential Revision: https://reviews.freebsd.org/D22479
Notes
Notes: svn path=/head/; revision=355859
Diffstat (limited to 'sys/netinet/tcp_stacks/sack_filter.c')
-rw-r--r--sys/netinet/tcp_stacks/sack_filter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet/tcp_stacks/sack_filter.c b/sys/netinet/tcp_stacks/sack_filter.c
index c4b35d5b8ca8..978f6670c50a 100644
--- a/sys/netinet/tcp_stacks/sack_filter.c
+++ b/sys/netinet/tcp_stacks/sack_filter.c
@@ -25,11 +25,16 @@
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#ifndef _KERNEL
+#define _WANT_TCPCB 1
+#endif
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/socket.h>
+#ifdef _KERNEL
#include <sys/mbuf.h>
#include <sys/sockopt.h>
+#endif
#include <netinet/tcp.h>
#include <netinet/tcp_var.h>
#include <netinet/tcp_seq.h>