0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00
openvpn3/openvpn/addr
Arne Schwabe fd6e76ea28 Avoid maybe unintialized warning in IP::Addr
Since the memory layout of the IPAddr class has the field ver behind
the union of u.v4 and u.v6, the whole u is always guaranteed to be
valid and can be copied. This avoid the compiler warning that
u.v6[1] might be undefined.

Also initialise the union u by default.

Signed-off-by: Arne Schwabe <arne@openvpn.net>
2020-01-29 18:13:28 +01:00
..
addrlist.hpp [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00
addrpair.hpp [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00
addrspacesplit.hpp Fix Android route exclusion emulation 2019-03-12 11:36:29 +01:00
ip.hpp Avoid maybe unintialized warning in IP::Addr 2020-01-29 18:13:28 +01:00
iperr.hpp [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00
ipv4.hpp IPv4, IPv6: added #include <openvpn/common/hash.hpp> 2019-09-25 19:51:27 +02:00
ipv6.hpp IPv4, IPv6: added #include <openvpn/common/hash.hpp> 2019-09-25 19:51:27 +02:00
macaddr.hpp [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00
pool.hpp Fix various warnings reported by -Wall/clang 2020-01-15 23:08:28 +01:00
quoteip.hpp library: added quote_ip() function to return IP addr in brackets if it is IPv6 2018-05-13 23:03:09 -06:00
randaddr.hpp random_subnet(): added comment 2019-07-17 10:53:46 -06:00
range.hpp [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00
regex.hpp [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00
route.hpp route: allow for specialized IPv4/v6 RouteType 2018-08-30 13:00:27 +03:00