Author: nbd Date: 2016-02-01 13:02:11 +0100 (Mon, 01 Feb 2016) New Revision: 48596
Modified: trunk/package/network/config/gre/files/gre.sh Log: gre: Support multicast configurable gre interfaces UCI paramater multicast is added which allows to toggle multicast support on gre interfaces. By default multicast support is enabled as gre tunnels are often used in combination with routing protocols using multicast. Signed-off-by: Hans Dedecker <[email protected]> Signed-off-by: Nick Podolak <[email protected]> Modified: trunk/package/network/config/gre/files/gre.sh =================================================================== --- trunk/package/network/config/gre/files/gre.sh 2016-02-01 12:02:05 UTC (rev 48595) +++ trunk/package/network/config/gre/files/gre.sh 2016-02-01 12:02:11 UTC (rev 48596) @@ -13,10 +13,11 @@ 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 @@ -26,6 +27,7 @@ [ -n "$df" ] && json_add_boolean df "$df" json_add_int ttl "${ttl:-64}" [ -n "$tos" ] && json_add_string tos "$tos" + json_add_boolean multicast "$multicast" json_add_string local "$local" json_add_string remote "$remote" [ -n "$tunlink" ] && json_add_string link "$tunlink" @@ -203,6 +205,7 @@ 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-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
