Created
February 10, 2016 19:44
-
-
Save kev009/f9878bcc057ed6581c82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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