sync code with last improvements from OpenBSD

This commit is contained in:
purplerain 2023-09-05 00:47:44 +00:00
parent 8ed89093e5
commit 30d14db1d3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
5 changed files with 90 additions and 19 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: inet.c,v 1.178 2023/07/07 09:15:13 yasuoka Exp $ */
/* $OpenBSD: inet.c,v 1.179 2023/09/04 23:00:36 bluhm Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@ -498,7 +498,7 @@ tcp_stats(char *name)
"\t%llu entr%s in current SYN cache, limit is %llu\n");
p2b(tcps_sc_bucket_maxlen, tcps_sc_bucket_limit,
"\t%llu longest bucket length in current SYN cache, limit is %llu\n");
p(tcps_sc_uses_left, "\t%llu use%s of current SYN cache left\n");
p(tcps_sc_uses_left, "\t%lld use%s of current SYN cache left\n");
p(tcps_sack_recovery_episode, "\t%llu SACK recovery episode%s\n");
p(tcps_sack_rexmits,