[OpenWrt-Devel] [PATCH 2/2] [package] gre: multicast flag control
Podolak, Nicholas
nicholas.podolak at dtechlabs.com
Wed Sep 2 16:31:18 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"
}
_______________________________________________
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