]> git.ipfire.org Git - thirdparty/openvpn.git/commit
networking: add and implement net_addr_ll_set() API
authorAntonio Quartulli <a@unstable.cc>
Fri, 3 Sep 2021 16:11:12 +0000 (18:11 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Sep 2021 16:25:58 +0000 (18:25 +0200)
commit98f524cbd58d24d09dee26160d7386d710c3564f
tree3b69197ecf406c634d34b6ab2d090ee8d95b2527
parentc3b16d7a35a2fd1ee4a70418fddc7c1dd9539dc3
networking: add and implement net_addr_ll_set() API

When running in TAP mode we may need to set the LL address of the
interface, if requested by the user.

This operation was overlooked when implementing the networking API and
it still relies on iproute/net-tools being installed.

Basically this means that when compiling OpenVPN on a system without
iproute2/net-tools and the user uses the "lladdr" config directive,
OpenVPN will fail to se the LL address of the interface.

With this patch a new API is introduced and it is implemented for both
SITNL and iproute2 backends.

Reported-by: Jan Hugo Prins <jprins@betterbe.com>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210903161113.30498-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22792.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/misc.h
src/openvpn/networking.h
src/openvpn/networking_iproute2.c
src/openvpn/networking_sitnl.c