Tos support is added as a generic grev4/grev6 parameter which can have the following values :
-inherit (outer header inherits the tos value of the inner header)
-hex value
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 42700
PKG_NAME:=gre
PKG_VERSION:=1
PKG_NAME:=gre
PKG_VERSION:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/package.mk
local local="$3"
local remote="$4"
local link="$5"
local local="$3"
local remote="$4"
local link="$5"
- local mtu ttl zone ikey okey icsum ocsum iseqno oseqno
- json_get_vars mtu ttl zone ikey okey icsum ocsum iseqno oseqno
+ local mtu ttl tos zone ikey okey icsum ocsum iseqno oseqno
+ json_get_vars mtu ttl tos zone ikey okey icsum ocsum iseqno oseqno
[ -z "$zone" ] && zone="wan"
[ -z "$zone" ] && zone="wan"
json_add_int mtu "${mtu:-1280}"
[ -n "$df" ] && json_add_boolean df "$df"
json_add_int ttl "${ttl:-64}"
json_add_int mtu "${mtu:-1280}"
[ -n "$df" ] && json_add_boolean df "$df"
json_add_int ttl "${ttl:-64}"
+ [ -n "$tos" ] && json_add_string tos "$tos"
json_add_string local "$local"
json_add_string remote "$remote"
[ -n "$tunlink" ] && json_add_string link "$tunlink"
json_add_string local "$local"
json_add_string remote "$remote"
[ -n "$tunlink" ] && json_add_string link "$tunlink"
proto_config_add_int "mtu"
proto_config_add_int "ttl"
proto_config_add_int "mtu"
proto_config_add_int "ttl"
+ proto_config_add_string "tos"
proto_config_add_string "tunlink"
proto_config_add_string "zone"
proto_config_add_int "ikey"
proto_config_add_string "tunlink"
proto_config_add_string "zone"
proto_config_add_int "ikey"