Module Name: src
Committed By: riastradh
Date: Mon Jul 29 16:00:41 UTC 2024
Modified Files:
src/sys/net: if_wg.c
Log Message:
wg(4): Fix typo in comment recently added.
Comment added in the service of:
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.118 -r1.119 src/sys/net/if_wg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_wg.c
diff -u src/sys/net/if_wg.c:1.118 src/sys/net/if_wg.c:1.119
--- src/sys/net/if_wg.c:1.118 Mon Jul 29 02:34:27 2024
+++ src/sys/net/if_wg.c Mon Jul 29 16:00:41 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wg.c,v 1.118 2024/07/29 02:34:27 riastradh Exp $ */
+/* $NetBSD: if_wg.c,v 1.119 2024/07/29 16:00:41 riastradh Exp $ */
/*
* Copyright (C) Ryota Ozaki <[email protected]>
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.118 2024/07/29 02:34:27 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.119 2024/07/29 16:00:41 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_altq_enabled.h"
@@ -1991,8 +1991,8 @@ wg_swap_sessions(struct wg_peer *wgp)
/*
* Get the newly established session, to become the new
* session. Caller must have transitioned from INIT_ACTIVE to
- * INIT_PASSIVE to ESTABLISHED already. This will become the
- * stable session.
+ * INIT_PASSIVE or to ESTABLISHED already. This will become
+ * the stable session.
*/
wgs = wgp->wgp_session_unstable;
KASSERTMSG(wgs->wgs_state == WGS_STATE_ESTABLISHED, "state=%d",