Skip to content
Snippets Groups Projects
Commit 140a5b22 authored by Steven Barth's avatar Steven Barth
Browse files

odhcp6c: Use sourcerouting by default

SVN-Revision: 39311
parent 570eb45f
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ setup_interface () { ...@@ -68,7 +68,7 @@ setup_interface () {
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid"
else else
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "::/128" proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "::/128"
for prefix in $PREFIXES; do for prefix in $PREFIXES $ADDRESSES; do
local paddr="${prefix%%,*}" local paddr="${prefix%%,*}"
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$paddr" proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$paddr"
done done
......
...@@ -49,7 +49,7 @@ proto_dhcpv6_setup() { ...@@ -49,7 +49,7 @@ proto_dhcpv6_setup() {
[ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix" [ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix"
[ -n "$iface_dslite" ] && proto_export "IFACE_DSLITE=$iface_dslite" [ -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_export "INTERFACE=$config"
proto_run_command "$config" odhcp6c \ proto_run_command "$config" odhcp6c \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment