diff options
author | Steven Barth <steven@midlink.org> | 2014-01-23 10:59:04 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-01-23 10:59:04 +0000 |
commit | fed88c98176d8ddccca2d2c7a09a66f5abbed99c (patch) | |
tree | cdf24d8d9ff8475cca6c9e59826059326f7e35b0 /package/network/ipv6/6rd | |
parent | 327d5f976fd75fbdbd4c2d4d0bc2ac0df70a9476 (diff) | |
download | upstream-fed88c98176d8ddccca2d2c7a09a66f5abbed99c.tar.gz upstream-fed88c98176d8ddccca2d2c7a09a66f5abbed99c.tar.bz2 upstream-fed88c98176d8ddccca2d2c7a09a66f5abbed99c.zip |
6rd: Make don't fragment bit (df) a configurable variable
Make the IPv4 "do not fragment" bit a configurable variable for the 6rd
tunnel interface as the bit should not be set in the encapsulating IPv4
header according to RFC3056.
On top the config variable allows to enable/disable path mtu discovery
for tunnel interfaces.
Config variable can be passed to netifd as tunnel config support is
already present for the "do not fragment" bit.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39370 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/6rd')
-rw-r--r-- | package/network/ipv6/6rd/files/6rd.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/ipv6/6rd/files/6rd.sh b/package/network/ipv6/6rd/files/6rd.sh index be6d536845..e80729c341 100644 --- a/package/network/ipv6/6rd/files/6rd.sh +++ b/package/network/ipv6/6rd/files/6rd.sh @@ -14,8 +14,8 @@ proto_6rd_setup() { local iface="$2" local link="6rd-$cfg" - local mtu ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting - json_get_vars mtu ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting + local mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting + json_get_vars mtu df ttl ipaddr peeraddr ip6prefix ip6prefixlen ip4prefixlen tunlink sourcerouting [ -z "$ip6prefix" -o -z "$peeraddr" ] && { proto_notify_error "$cfg" "MISSING_ADDRESS" @@ -60,6 +60,7 @@ proto_6rd_setup() { proto_add_tunnel json_add_string mode sit json_add_int mtu "${mtu:-1280}" + json_add_boolean df "${df:-1}" json_add_int ttl "${ttl:-64}" json_add_string local "$ipaddr" json_add_string 6rd-prefix "$ip6prefix/$ip6prefixlen" @@ -79,6 +80,7 @@ proto_6rd_init_config() { available=1 proto_config_add_int "mtu" + proto_config_add_boolean "df" proto_config_add_int "ttl" proto_config_add_string "ipaddr" proto_config_add_string "peeraddr" |