diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-01-17 14:00:04 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-01-17 14:00:04 +0000 |
commit | 140a5b22d944ff4949fcb50fd72a0305fe9e3c1a (patch) | |
tree | 95d2155c9618488425f0bdcca5912231c328053b | |
parent | 570eb45f23b6e0bbb90a795a0344b96173f4de5a (diff) | |
download | mtk-20170518-140a5b22d944ff4949fcb50fd72a0305fe9e3c1a.zip mtk-20170518-140a5b22d944ff4949fcb50fd72a0305fe9e3c1a.tar.gz mtk-20170518-140a5b22d944ff4949fcb50fd72a0305fe9e3c1a.tar.bz2 |
odhcp6c: Use sourcerouting by default
SVN-Revision: 39311
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.script | 2 | ||||
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.sh | 2 |
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 8bcf766..13732df 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 0638d28..cffb3ec 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 \ |