]> git.ipfire.org Git - people/jschlag/network.git/commit
ip-tunnel: choose the correct type based on the ip protocol 11431
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:21:01 +0000 (18:21 +0000)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:24:38 +0000 (18:24 +0000)
commit800c5af2206245b1db69f13947223aaea35c5718
tree719494eed8188f09c0a817f694b5a97564a38b94
parent2f9f5c13c4e6124baeccbaa1138e5a9929003522
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>
src/functions/functions.ip-tunnel