]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco_linux: enable extended netlink error reporting
authorAntonio Quartulli <antonio@mandelbit.com>
Mon, 9 Jun 2025 10:02:10 +0000 (12:02 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 9 Jun 2025 17:38:30 +0000 (19:38 +0200)
commitddbfbeca603eedddc12556b28e5cd9b022e9ea63
tree11b8355b1a9d3b9165f179cc69cb633488e25f88
parent9cc7c68bd8d42b9e1c02fd3f069d404b5c056b57
dco_linux: enable extended netlink error reporting

The ovpn netlink code reports more verbose error
strings to help userspace understand what went wrong,
rather than just returning, for example, -EINVAL.

However, userspace must instruct the kernel netlink
subsystem that it wants to receive such strings.

code for parsing such strings has always been present
but it was never used.

Set the socket option which enables such reporting.

Change-Id: I4457b1d7262e0a39c275d33aaef6c4bcbeae6ab3
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20250609100216.3997-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31885.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_linux.c