Demo entry 6750806

a

   

Submitted by anonymous on Jun 20, 2018 at 12:41
Language: C. Code size: 288 Bytes.

static u32 tcp_wdctcp_ssthresh(struct sock *sk)
{
	struct tcp_wdctcp *ca = inet_csk_ca(sk);
	struct tcp_sock *tp = tcp_sk(sk);

	u32 wnd = max(min(tp->snd_cwnd, tp->packets_out), 1U);
        ca->loss_cwnd = wnd;
        return max(wnd - ((wnd * ca->dctcp_alpha) >> 11U), 2U);
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).