summaryrefslogtreecommitdiffstats
path: root/sys/netinet/cc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/cc')
-rw-r--r--sys/netinet/cc/cc_newreno.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/cc/cc_newreno.c b/sys/netinet/cc/cc_newreno.c
index c095540..f26553d 100644
--- a/sys/netinet/cc/cc_newreno.c
+++ b/sys/netinet/cc/cc_newreno.c
@@ -182,6 +182,10 @@ newreno_cong_signal(struct cc_var *ccv, uint32_t type)
{
u_int win;
+ /* Catch algos which mistakenly leak private signal types. */
+ KASSERT((type & CC_SIGPRIVMASK) == 0,
+ ("%s: congestion signal type 0x%08x is private\n", __func__, type));
+
win = max(CCV(ccv, snd_cwnd) / 2 / CCV(ccv, t_maxseg), 2) *
CCV(ccv, t_maxseg);
OpenPOWER on IntegriCloud