ovpn: notify userspace when a peer is deleted
authorAntonio Quartulli <antonio@openvpn.net>
Tue, 15 Apr 2025 11:17:38 +0000 (13:17 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 17 Apr 2025 10:30:03 +0000 (12:30 +0200)
commita215d253c17ac8e78cea950dc5376eed29ba2d67
treeb1d4f14a5e636a73d178e9412842bf5015e1dfaf
parent89d3c0e4612afa1c6429ed68d298e35592fbe208
ovpn: notify userspace when a peer is deleted

Whenever a peer is deleted, send a notification to userspace so that it
can react accordingly.

This is most important when a peer is deleted due to ping timeout,
because it all happens in kernelspace and thus userspace has no direct
way to learn about it.

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Link: https://patch.msgid.link/20250415-b4-ovpn-v26-21-577f6097b964@openvpn.net
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ovpn/netlink.c
drivers/net/ovpn/netlink.h
drivers/net/ovpn/peer.c