diff options
author | 2025-04-15 13:17:35 +0200 | |
---|---|---|
committer | 2025-04-17 12:30:03 +0200 | |
commit | 1d36a36f6d5347360ef9681a05f6166683bafd1d (patch) | |
tree | 6674b933bd0b749da297b7cdde8d1597d019f7e5 /drivers/net/ovpn/socket.c | |
parent | ovpn: add support for updating local or remote UDP endpoint (diff) | |
download | wireguard-linux-1d36a36f6d5347360ef9681a05f6166683bafd1d.tar.xz wireguard-linux-1d36a36f6d5347360ef9681a05f6166683bafd1d.zip |
ovpn: implement peer add/get/dump/delete via netlink
This change introduces the netlink command needed to add, delete and
retrieve/dump known peers. Userspace is expected to use these commands
to handle known peer lifecycles.
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Link: https://patch.msgid.link/20250415-b4-ovpn-v26-18-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>
Diffstat (limited to 'drivers/net/ovpn/socket.c')
-rw-r--r-- | drivers/net/ovpn/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ovpn/socket.c b/drivers/net/ovpn/socket.c index 3a18fbdd3721..a83cbab72591 100644 --- a/drivers/net/ovpn/socket.c +++ b/drivers/net/ovpn/socket.c @@ -49,8 +49,8 @@ static bool ovpn_socket_put(struct ovpn_peer *peer, struct ovpn_socket *sock) * ovpn_socket_release - release resources owned by socket user * @peer: peer whose socket should be released * - * This function should be invoked when the user is shutting - * down and wants to drop its link to the socket. + * This function should be invoked when the peer is being removed + * and wants to drop its link to the socket. * * In case of UDP, the detach routine will drop a reference to the * ovpn netdev, pointed by the ovpn_socket. |