]> git.ipfire.org Git - people/jschlag/network.git/commit
ip-tunnel: choose the correct type based on the ip protocol
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:24:59 +0000 (18:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Mar 2018 20:20:49 +0000 (20:20 +0000)
commitdff38496350dd5ceef6286aa4bff2cc49fae3669
tree719494eed8188f09c0a817f694b5a97564a38b94
parent5bbd1fab191de5ec8fe7c03ebc7e57c487e948f7
ip-tunnel: choose the correct type based on the ip protocol

IPv4 and IPv6 need different types for iproute2.
So in the _add function we have to determine the mode
based on the IP protocol of the ${remote_address}.

When we change ikey and okey we have to dertermine the mode the device
have currently.

Fixes: #11431
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.ip-tunnel