wg: Add wg_timers_get_persistent_keepalive() to get PKA
authorAaron LI <aly@aaronly.me>
Sat, 13 Jan 2024 08:25:49 +0000 (16:25 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:44:47 +0000 (14:44 +0800)
commit45b0390634f117a9c31bec6a8c32efe88402b075
tree17378fca2d2bed82ef502ad771d41cc1b8a5ab63
parent9f69aef9c659f6223a4f71eef9afd8d77a890433
wg: Add wg_timers_get_persistent_keepalive() to get PKA

In sync with wg_timers_set_persistent_keepalive(), the atomic ops is
used to get the pka value.

Referred-to: OpenBSD
sys/net/wg/if_wg.c