Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2019 20:04:31 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352659 - head/sys/netinet
Message-ID:  <201909242004.x8OK4VPH003891@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rrs
Date: Tue Sep 24 20:04:31 2019
New Revision: 352659
URL: https://svnweb.freebsd.org/changeset/base/352659

Log:
  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..

Modified:
  head/sys/netinet/tcp_ratelimit.h

Modified: head/sys/netinet/tcp_ratelimit.h
==============================================================================
--- head/sys/netinet/tcp_ratelimit.h	Tue Sep 24 20:01:20 2019	(r352658)
+++ head/sys/netinet/tcp_ratelimit.h	Tue Sep 24 20:04:31 2019	(r352659)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909242004.x8OK4VPH003891>