]> git.ipfire.org Git - thirdparty/openvpn.git/commit
tun.c: make Windows device lookup functions more general
authorSimon Rozman <simon@rozman.si>
Fri, 20 Dec 2019 16:11:11 +0000 (17:11 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 22 Dec 2019 18:47:43 +0000 (19:47 +0100)
commitbe78706830f02b095392ff063c9490da27b6faa1
treef174466b4d21f9e43ae228adcf5de8ebeb20b2dc
parent39787fc63148f9f9e0975aae3bb0ba5bff72adc3
tun.c: make Windows device lookup functions more general

Since the introduction of Wintun, not all network devices in Windows are
TAP-Windows6. Rather than returning a simple true/false answer, a couple
of functions were reworked to return a corresponding struct tap_reg *
or NULL instead.

As it would make the code `tr = is_tap_win(...)` a bit awkward those
functions (both static) were renamed to better reflect their nature.

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