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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to