6rd: increase metric of default route
authorSteven Barth <cyrus@openwrt.org>
Sun, 12 May 2013 08:07:15 +0000 (08:07 +0000)
committerSteven Barth <cyrus@openwrt.org>
Sun, 12 May 2013 08:07:15 +0000 (08:07 +0000)
This will prefer native IPv6 over 6rd if both are present.

SVN-Revision: 36605

package/network/ipv6/6rd/Makefile
package/network/ipv6/6rd/files/6rd.sh

index f64cab3fe0af7e95009cfd10c1ef17eb0560cda1..6e77d24bc710fabb21f82b7be5a1ac53fa2fc11a 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=6rd
-PKG_VERSION:=3
+PKG_VERSION:=4
 PKG_RELEASE:=1
 
 include $(INCLUDE_DIR)/package.mk
index b681f2bbe6b2261c7a1092c4d31e405d5c3b787e..7d6cc3ebd3ba11f937c2a2421972b63af4437793 100644 (file)
@@ -48,7 +48,7 @@ proto_6rd_setup() {
        proto_init_update "$link" 1
        proto_add_ipv6_address "$ip6addr" "$ip6prefixlen"
        proto_add_ipv6_prefix "$ip6lanprefix"
-       proto_add_ipv6_route "::" 0 "::$peeraddr"
+       proto_add_ipv6_route "::" 0 "::$peeraddr" 4096
 
        proto_add_tunnel
        json_add_string mode sit