18 Nov
2025
18 Nov
'25
1:19 a.m.
On Mon, 10 Nov 2025 17:31:35 +0800
Yumei Huang
+/** + * tcp_get_rto_params() - Get host kernel RTO parameters + * @c: Execution context + */ +void tcp_get_rto_params(struct ctx *c) +{ + intmax_t v; + + v = read_file_integer(SYN_RETRIES, SYN_RETRIES_DEFAULT); + c->tcp.syn_retries = MIN(v, MAX_SYNCNT); + + v = read_file_integer(SYN_LINEAR_TIMEOUTS, SYN_LINEAR_TIMEOUTS_DEFAULT); + c->tcp.syn_linear_timeouts = MIN(v, MAX_SYNCNT); + + debug("Read sysctl values syn_retries: %"PRIu8 + ", syn_linear_timeouts: %"PRIu8, + c->tcp.syn_retries, + c->tcp.syn_linear_timeouts);
See my comment to 2/6: this should be "Using sysctl values ..." instead. -- Stefano