odhcp6c: Use sourcerouting by default

SVN-Revision: 39311
This commit is contained in:
Steven Barth 2014-01-17 14:00:04 +00:00
parent 570eb45f23
commit 140a5b22d9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 \