]> git.ipfire.org Git - people/jschlag/network.git/commit
ip-tunnel: add new function
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:05:05 +0000 (18:05 +0000)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:05:05 +0000 (18:05 +0000)
commit6927ffb3df1109d0f8ccac907af6a5b06df1ef49
tree4940ab763ba6e26673cb9e8fff4a8ebe43b9045f
parent3b45ba3a8cac4270bec5c318e7516b8fa652c084
ip-tunnel: add new function

To be undependent from the IP protocol we use, when we use tunnel modes
in our code, this function converts the modes
to the modes the iproute2 tool uses
which often depend on the IP protocol version.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/functions/functions.ip-tunnel