]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco: mark peer as deleted from kernel after receiving CMD_DEL_PEER notification
authorAntonio Quartulli <antonio@mandelbit.com>
Thu, 12 Sep 2024 16:53:39 +0000 (18:53 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 12 Sep 2024 17:15:19 +0000 (19:15 +0200)
commit45bef145f3cc39c4c13609866f07b6cf9f8960a6
treeca405b565c7e0678fa100a8f0dd64c00de397988
parentb8b2d17f473e80b1a0b66e49cc1f34ce88d9502d
dco: mark peer as deleted from kernel after receiving CMD_DEL_PEER notification

some extra DCO calls may be made after receiving the DEL_PEER
notification (i.e. due to timeout), but this will result in
an error message due to the peer having disappeared already.

An extra call might be, for example, an explicit DEL_PEER
in the attempt of cleaning the peer state.

For this reason, inform userspace that there is no peer in
kernel anymore and prevent errors which may result confusing.

Change-Id: Ife50e37cd49d55ec81a70319a524ffeaf0625a56
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Message-Id: <20240912165339.21058-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29226.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/forward.c