aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_ratelimit.h
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2019-09-24 20:04:31 +0000
committerRandall Stewart <rrs@FreeBSD.org>2019-09-24 20:04:31 +0000
commit2f1cc984db31f1d61db95246872d0c3fa731a791 (patch)
treef83e7b0230ee4339872c9477c229c366b142dee6 /sys/netinet/tcp_ratelimit.h
parentc9205e35008e9275adb1803a10a7306c4f1c44a9 (diff)
downloadsrc-2f1cc984db31f1d61db95246872d0c3fa731a791.tar.gz
src-2f1cc984db31f1d61db95246872d0c3fa731a791.zip
Fix the ifdefs in tcp_ratelimit.h. They were reversed so
that instead of functions only being inside the _KERNEL and the absence of RATELIMIT causing us to have NULL/error returning interfaces we ended up with non-kernel getting the error path. opps..
Notes
Notes: svn path=/head/; revision=352659
Diffstat (limited to 'sys/netinet/tcp_ratelimit.h')
-rw-r--r--sys/netinet/tcp_ratelimit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_ratelimit.h b/sys/netinet/tcp_ratelimit.h
index 49e407c03928..ebd4c4204704 100644
--- a/sys/netinet/tcp_ratelimit.h
+++ b/sys/netinet/tcp_ratelimit.h
@@ -87,8 +87,8 @@ CK_LIST_HEAD(head_tcp_rate_set, tcp_rate_set);
#define RS_PACING_LT 0x0008 /* Less than requested rate */
#define RS_PACING_SUB_OK 0x0010 /* If a rate can't be found get the
* next best rate (highest or lowest). */
-#ifdef RATELIMIT
#ifdef _KERNEL
+#ifdef RATELIMIT
#define DETAILED_RATELIMIT_SYSCTL 1 /*
* Undefine this if you don't want
* detailed rates to appear in