mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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>
18 lines
453 B
C
18 lines
453 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* OpenVPN data channel offload
|
|
*
|
|
* Copyright (C) 2020-2025 OpenVPN, Inc.
|
|
*
|
|
* Author: Antonio Quartulli <antonio@openvpn.net>
|
|
*/
|
|
|
|
#ifndef _NET_OVPN_NETLINK_H_
|
|
#define _NET_OVPN_NETLINK_H_
|
|
|
|
int ovpn_nl_register(void);
|
|
void ovpn_nl_unregister(void);
|
|
|
|
int ovpn_nl_peer_del_notify(struct ovpn_peer *peer);
|
|
int ovpn_nl_key_swap_notify(struct ovpn_peer *peer, u8 key_id);
|
|
|
|
#endif /* _NET_OVPN_NETLINK_H_ */
|