From: Steven Barth Date: Tue, 15 Jan 2013 13:08:14 +0000 (+0000) Subject: 6rd: add support for native IPv6 prefix handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=955a1e8e28a117a1cee056cab5eb7d6ea25974b9;p=openwrt%2Fstaging%2Fadrian.git 6rd: add support for native IPv6 prefix handling SVN-Revision: 35173 --- diff --git a/package/network/ipv6/6rd/Makefile b/package/network/ipv6/6rd/Makefile index 3d4549674f..f64cab3fe0 100644 --- a/package/network/ipv6/6rd/Makefile +++ b/package/network/ipv6/6rd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=6rd -PKG_VERSION:=2 +PKG_VERSION:=3 PKG_RELEASE:=1 include $(INCLUDE_DIR)/package.mk diff --git a/package/network/ipv6/6rd/files/6rd.sh b/package/network/ipv6/6rd/files/6rd.sh index 59c3169b39..b681f2bbe6 100644 --- a/package/network/ipv6/6rd/files/6rd.sh +++ b/package/network/ipv6/6rd/files/6rd.sh @@ -42,8 +42,12 @@ proto_6rd_setup() { local ip6subnet=$(6rdcalc "$ip6prefix/$ip6prefixlen" "$ipaddr/$ip4prefixlen") local ip6addr="${ip6subnet%%::*}::1" + # Determine the IPv6 prefix + local ip6lanprefix="$ip6subnet/$(($ip6prefixlen + 32 - $ip4prefixlen))" + proto_init_update "$link" 1 proto_add_ipv6_address "$ip6addr" "$ip6prefixlen" + proto_add_ipv6_prefix "$ip6lanprefix" proto_add_ipv6_route "::" 0 "::$peeraddr" proto_add_tunnel