Module Name: src Committed By: riastradh Date: Sun Jul 28 14:46:33 UTC 2024
Modified Files: src/tests/net/if_wg: t_misc.sh Log Message: tests/net/if_wg/t_misc: Tweak timeouts in wg_handshake_timeout. Most of the timers in wg(4) have only 1sec resolution, which might be rounded in either direction, so make sure there's a 2sec buffer on either side of the event we care about (the point at which wg(4) decides to stop retrying handshake). Won't fix any bugs, but might make the tests slightly less flaky. PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails PR kern/56252: wg(4) state machine has race conditions To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/tests/net/if_wg/t_misc.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/net/if_wg/t_misc.sh diff -u src/tests/net/if_wg/t_misc.sh:1.12 src/tests/net/if_wg/t_misc.sh:1.13 --- src/tests/net/if_wg/t_misc.sh:1.12 Mon Jun 13 07:59:15 2022 +++ src/tests/net/if_wg/t_misc.sh Sun Jul 28 14:46:33 2024 @@ -1,4 +1,4 @@ -# $NetBSD: t_misc.sh,v 1.12 2022/06/13 07:59:15 martin Exp $ +# $NetBSD: t_misc.sh,v 1.13 2024/07/28 14:46:33 riastradh Exp $ # # Copyright (c) 2018 Ryota Ozaki <ozaki.ry...@gmail.com> # All rights reserved. @@ -143,10 +143,9 @@ wg_handshake_timeout_body() local ip_wg_local=10.0.0.1 local ip_wg_peer=10.0.0.2 local port=51820 - local rekey_after_time=3 local outfile=./out - local rekey_timeout=3 - local rekey_attempt_time=8 + local rekey_timeout=4 + local rekey_attempt_time=10 local n= setup_servers