aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/tun.h
diff options
context:
space:
mode:
authorAntonio Quartulli2018-06-13 20:28:24 +0800
committerGert Doering2018-06-13 15:06:02 +0200
commit78c58cfb02c5ca543cc7e0962337003601483e39 (patch)
treeea47eff77911c0ea6d3b98a972b589c7a499474c /src/openvpn/tun.h
parent0bea472c98dca8b3470ef863fd90a63b6c79fa68 (diff)
downloadopenvpn-78c58cfb02c5ca543cc7e0962337003601483e39.zip
openvpn-78c58cfb02c5ca543cc7e0962337003601483e39.tar.gz
tun: get rid of tt->did_ifconfig member
tt->did_ifconfig is currently only read by the Linux platform, but it is currently uselessly set also by every other system. The Linux platform does not actually even need this member and can directly rely on tt->did_ifconfig_setup. For the reasons above, remove the tt->did_ifconfig at all and use tt->did_ifconfig_setup where needed (close_tun() on Linux). Signed-off-by: Antonio Quartulli <antonio@openvpn.net> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20180613122824.4207-4-a@unstable.cc> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17046.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/tun.h')
-rw-r--r--src/openvpn/tun.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/openvpn/tun.h b/src/openvpn/tun.h
index 6c57ad0..9495d60 100644
--- a/src/openvpn/tun.h
+++ b/src/openvpn/tun.h
@@ -138,7 +138,6 @@ struct tuntap
bool did_ifconfig_setup;
bool did_ifconfig_ipv6_setup;
- bool did_ifconfig;
bool persistent_if; /* if existed before, keep on program end */