[OpenWrt-Devel] [PATCH 2/2] [gre] multicast flag control
Podolak, Nicholas
Nicholas.Podolak at cubic.com
Tue Oct 20 10:31:02 EDT 2015
From: Nick Podolak <nicholas.podolak at dtechlabs.com>
This patch adds the ability for the gre.sh netifd script to deliver the multicast flag config variable from UCI to the netifd process.
This patch won't do much without the first from the group.
Signed-off-by: Nick Podolak <nicholas.podolak at dtechlabs.com>
diff --git a/package/network/config/gre/files/gre.sh b/package/network/config/gre/files/gre.sh
index 4483a08..5c7982e 100755
--- a/package/network/config/gre/files/gre.sh
+++ b/package/network/config/gre/files/gre.sh
@@ -13,10 +13,11 @@ gre_generic_setup() {
local local="$3"
local remote="$4"
local link="$5"
- local mtu ttl tos zone ikey okey icsum ocsum iseqno oseqno
- json_get_vars mtu ttl tos zone ikey okey icsum ocsum iseqno oseqno
+ 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
[ -z "$zone" ] && zone="wan"
+ [ -z "$multicast" ] && multicast="1"
proto_init_update "$link" 1
@@ -30,6 +31,7 @@ gre_generic_setup() {
json_add_string remote "$remote"
[ -n "$tunlink" ] && json_add_string link "$tunlink"
json_add_string info "${ikey:-0},${okey:-0},${icsum:-0},${ocsum:-0},${iseqno:-0},${oseqno:-0}"
+ [ -n "$multicast" ] && json_add_boolean multicast "$multicast"
proto_close_tunnel
proto_add_data
@@ -203,6 +205,7 @@ gre_generic_init_config() {
proto_config_add_boolean "ocsum"
proto_config_add_boolean "iseqno"
proto_config_add_boolean "oseqno"
+ proto_config_add_boolean "multicast"
}
proto_gre_init_config() {
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list