]> git.ipfire.org Git - thirdparty/openvpn.git/commit
implement platform generic networking API
authorAntonio Quartulli <a@unstable.cc>
Tue, 14 May 2019 08:11:59 +0000 (10:11 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 15 May 2019 19:04:04 +0000 (21:04 +0200)
commit3d26593736982852fcf277b541da38b4c3cc7fc8
tree865f031b09aa113139cd3eead352144f594c47d7
parent91ba1add2f8f231a7ccf4557cdd593547e625723
implement platform generic networking API

tun.c and route.c contain all the code used by openvpn
to manage the tun interface and the routing table on all
the supported platforms.

Across the years, this resulted in a longer functions
and series of ifdefs.

This patch introduces a new "networking API" which aims at
creating a simple abstraction between the tun/route logic
and the platform dependent code.

The is API expected to be implemented outside of tun.c/route.c
by using platform specific functionalities.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190514081159.12192-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18458.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/Makefile.am
src/openvpn/networking.h [new file with mode: 0644]