Skip to content

Instantly share code, notes, and snippets.

@kev009
Created February 10, 2016 19:44
Show Gist options
  • Save kev009/f9878bcc057ed6581c82 to your computer and use it in GitHub Desktop.
Save kev009/f9878bcc057ed6581c82 to your computer and use it in GitHub Desktop.
static int
tcp_sysctl_rfc3390_handler(SYSCTL_HANDLER_ARGS)
{
int err;
int new;
err = sysctl_handle_int(oidp, &new, 0, req);
if (err || !req->newptr)
return (err);
if (new == 1) {
V_tcp_initcwnd_segments = 4;
V_tcp_initcwnd_bytes = 4380;
}
else
err = EINVAL;
return (err);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment