aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-01-17 14:00:04 +0000
committerSteven Barth <steven@midlink.org>2014-01-17 14:00:04 +0000
commit00769bba6c0fbe3f862f1072c5dc46faca7bb593 (patch)
tree659b1a537e961eb463b08909cd4e060efa984e6f /package/network/ipv6
parent70bad4076a9ce9fca9d599552de58e74bdade407 (diff)
downloadmaster-187ad058-00769bba6c0fbe3f862f1072c5dc46faca7bb593.tar.gz
master-187ad058-00769bba6c0fbe3f862f1072c5dc46faca7bb593.tar.bz2
master-187ad058-00769bba6c0fbe3f862f1072c5dc46faca7bb593.zip
odhcp6c: Use sourcerouting by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39311 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.script2
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script
index 8bcf76681c..13732df086 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.script
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script
@@ -68,7 +68,7 @@ setup_interface () {
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid"
else
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "::/128"
- for prefix in $PREFIXES; do
+ for prefix in $PREFIXES $ADDRESSES; do
local paddr="${prefix%%,*}"
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$paddr"
done
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
index 0638d28f5f..cffb3ec22a 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
@@ -49,7 +49,7 @@ proto_dhcpv6_setup() {
[ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix"
[ -n "$iface_dslite" ] && proto_export "IFACE_DSLITE=$iface_dslite"
- [ "$sourcerouting" = "1" ] && proto_export "SOURCE_ROUTING=1"
+ [ "$sourcerouting" != "0" ] && proto_export "SOURCE_ROUTING=1"
proto_export "INTERFACE=$config"
proto_run_command "$config" odhcp6c \