]> git.ipfire.org Git - thirdparty/openvpn.git/commit
route: warn on IPv4 routes installation when no IPv4 is configured
authorAntonio Quartulli <antonio@openvpn.net>
Sat, 30 May 2020 00:05:58 +0000 (02:05 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 7 Jun 2020 10:45:13 +0000 (12:45 +0200)
commit826d8953a335fdbc8d20d800f800a44d0674f00a
treeab7014b81193c06e8b1bcbea7aadf48864348fd4
parent6a8cd033b1812a26b9b35c17eef33240d7ac2719
route: warn on IPv4 routes installation when no IPv4 is configured

Same as already happens for IPv6, it is useful for the user to throw a
warning when an IPv4 route is about to be installed and the tun interface
has no IPv4 configured.

The twin message for IPv4 is adapted to have the same format.

The warning is not fatal, becuase the route might actually be external
to the tun interface and therefore it may still work.

At the same time, modify the error message used for a route
installation failure to explicitly mention "IPv4" since this it is
used in the IPv4 code path only.

Trac: #208
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20200530000600.1680-6-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19946.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/route.c