]> git.ipfire.org Git - thirdparty/openvpn.git/commit
attempt to add IPv6 route even when no IPv6 address was configured
authorAntonio Quartulli <a@unstable.cc>
Tue, 31 Jan 2017 11:21:31 +0000 (19:21 +0800)
committerGert Doering <gert@greenie.muc.de>
Mon, 20 Feb 2017 19:47:05 +0000 (20:47 +0100)
commitc74d574417b8b491fe6ad44e89843af8479cc9be
treee9f90a64d40bba1ea6a828a58402f5310f059582
parenta9743bf25e661d66ca7537adfe457e75afc947c4
attempt to add IPv6 route even when no IPv6 address was configured

Even if no IPv6 address is configured, OpenVPN still supports
transporting IPv6 segments, therefore adding an IPv6 route
should always be allowed.

However, the route might fail to be installed or may just not work
as expected, therefore, a proper warning should be printed to inform
the user of the possible pitfall.

Always allow adding an IPv6 route and print a WARNING when
no IPv6 address is configured for the interface.

Trac: #832
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170131112131.13570-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13994.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 2b7650e7ec9241745e4f66c932d6cffaece927d7)
src/openvpn/route.c