Module Name:    src
Committed By:   riastradh
Date:           Sun Jul 28 14:46:44 UTC 2024

Modified Files:
        src/tests/net/if_wg: t_misc.sh

Log Message:
tests/net/if_wg/t_misc: Elaborate in wg_rekey debug messages.

Helpful for following the test log when things go wrong.

PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails
PR kern/56252: wg(4) state machine has race conditions
PR kern/58463: if_wg does not work when idle.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 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.13 src/tests/net/if_wg/t_misc.sh:1.14
--- src/tests/net/if_wg/t_misc.sh:1.13	Sun Jul 28 14:46:33 2024
+++ src/tests/net/if_wg/t_misc.sh	Sun Jul 28 14:46:44 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_misc.sh,v 1.13 2024/07/28 14:46:33 riastradh Exp $
+#	$NetBSD: t_misc.sh,v 1.14 2024/07/28 14:46:44 riastradh Exp $
 #
 # Copyright (c) 2018 Ryota Ozaki <ozaki.ry...@gmail.com>
 # All rights reserved.
@@ -80,7 +80,7 @@ wg_rekey_body()
 
 	latest_handshake=$($HIJACKING wgconfig wg0 show peer peer0 \
 	    | awk -F ': ' '/latest-handshake/ {print $2;}')
-	$DEBUG && echo $latest_handshake
+	$DEBUG && echo handshake1=$latest_handshake
 
 	sleep 1
 
@@ -103,7 +103,7 @@ wg_rekey_body()
 
 	latest_handshake=$($HIJACKING wgconfig wg0 show peer peer0 \
 	    | awk -F ': ' '/latest-handshake/ {print $2;}')
-	$DEBUG && echo $latest_handshake
+	$DEBUG && echo handshake2=$latest_handshake
 
 	# Wait for a reinitiation to be performed again
 	sleep $((rekey_after_time+1))

Reply via email to