[OpenWrt-Devel] [PATCH 2/2] [gre] multicast flag control

Podolak, Nicholas nicholas.podolak at dtechlabs.com
Thu Nov 19 14:51:21 EST 2015


Original patchset was not applying correctly, let's try again.


Signed-off-by: Nick Podolak <nicholas.podolak at dtechlabs.com>

---
 package/network/config/gre/files/gre.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

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() {
-- 
1.9.1
_______________________________________________
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