]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun.c: refactor open_tun() implementation
authorLev Stipakov <lev@openvpn.net>
Wed, 13 Nov 2019 10:42:16 +0000 (12:42 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 19 Dec 2019 19:09:29 +0000 (20:09 +0100)
commit509c45f6e6885f4c2d413aa8e0189513098b3dcc
tree5c7cdf93903a085d5e99e8170d3b88e0242ef59b
parentef9b34044ec354902cd24bbcee244c6a494b6c7c
tun.c: refactor open_tun() implementation

This makes Windows's tun_open() method easier to read
by factoring out blocks of code, which perform certain task,
into separate functions. This also minimizes inflation of

  if (!tt->wintun)  { }

blocks.

While patch looks big and scary, there are no functional changes
at all, just tossing code around.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Simon Rozman <simon@rozman.si>
Message-Id: <20191113104216.1545-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19137.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c