aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/gre/files
diff options
context:
space:
mode:
authorAlin Nastac <alin.nastac@gmail.com>2019-11-12 15:11:00 +0100
committerHans Dedecker <dedeckeh@gmail.com>2019-12-02 21:52:33 +0100
commit416d2cc71e8631dae0ef590c139d5c46daec4929 (patch)
tree50da7731581f7abcaeebdd545b9738a0e5b0d30f /package/network/config/gre/files
parent806339a4cce25b29262cc8a02321eeea1783c386 (diff)
downloadupstream-416d2cc71e8631dae0ef590c139d5c46daec4929.tar.gz
upstream-416d2cc71e8631dae0ef590c139d5c46daec4929.tar.bz2
upstream-416d2cc71e8631dae0ef590c139d5c46daec4929.zip
gre: add ipv6 parameter to gre interfaces
IPv6 protocol is enabled on all gre interfaces, but gre(v6)tap interfaces are usually added to a bridge interface, in which case IPv6 should be enabled only on the bridge interface. Signed-off-by: Alin Nastac <alin.nastac@gmail.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
Diffstat (limited to 'package/network/config/gre/files')
-rwxr-xr-xpackage/network/config/gre/files/gre.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/config/gre/files/gre.sh b/package/network/config/gre/files/gre.sh
index 3414ed3047..eb3df5b48c 100755
--- a/package/network/config/gre/files/gre.sh
+++ b/package/network/config/gre/files/gre.sh
@@ -13,8 +13,8 @@ gre_generic_setup() {
local local="$3"
local remote="$4"
local link="$5"
- local mtu ttl tos zone ikey okey icsum ocsum iseqno oseqno multicast
- json_get_vars mtu ttl tos zone ikey okey icsum ocsum iseqno oseqno multicast
+ local mtu ipv6 ttl tos zone ikey okey icsum ocsum iseqno oseqno multicast
+ json_get_vars mtu ipv6 ttl tos zone ikey okey icsum ocsum iseqno oseqno multicast
[ -z "$multicast" ] && multicast=1
@@ -23,6 +23,7 @@ gre_generic_setup() {
proto_add_tunnel
json_add_string mode "$mode"
json_add_int mtu "${mtu:-1280}"
+ json_add_boolean ipv6 "${ipv6:-1}"
[ -n "$df" ] && json_add_boolean df "$df"
[ -n "$ttl" ] && json_add_int ttl "$ttl"
[ -n "$tos" ] && json_add_string tos "$tos"
@@ -248,6 +249,7 @@ gre_generic_init_config() {
available=1
proto_config_add_int "mtu"
+ proto_config_add_boolean "ipv6"
proto_config_add_int "ttl"
proto_config_add_string "tos"
proto_config_add_string "tunlink"