From 1cf55767b800492f15d2d49884f78f05506049c0 Mon Sep 17 00:00:00 2001 From: Randall Stewart Date: Tue, 17 Dec 2019 16:08:07 +0000 Subject: 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 --- sys/netinet/tcp_stacks/sack_filter.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/netinet/tcp_stacks/sack_filter.c') 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 __FBSDID("$FreeBSD$"); +#ifndef _KERNEL +#define _WANT_TCPCB 1 +#endif #include #include #include +#ifdef _KERNEL #include #include +#endif #include #include #include -- cgit v1.2.3