]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Read the peer deletion reason from the kernel
authorKristof Provost <kp@FreeBSD.org>
Mon, 5 Dec 2022 16:41:02 +0000 (17:41 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 14 Dec 2022 13:13:59 +0000 (14:13 +0100)
commit3186566e6967f0afb31e0426f5ec3490b0a363e9
tree75faf60680a235e69846477e4febca194ed100b8
parentf05c7a8a11329cc579d3751469b597e0eab1317f
Read the peer deletion reason from the kernel

Recent FreeBSD kernels supply a reason for the OVPN_NOTIF_DEL_PEER
notification. Parse this from the nvlist so we can distinguish
user-requested removals from timeouts.

Signed-off-by: Kristof Provost <kprovost@netgate.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20221205164103.9190-4-kprovost@netgate.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25617.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 10ea19092ded38ff25a445f987ad948aa9eac49f)
src/openvpn/dco_freebsd.c
src/openvpn/ovpn_dco_freebsd.h