diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-02-03 09:06:25 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-02-03 09:06:25 +0000 |
commit | 02c763c4ab60b930b69a892860550527fadad85c (patch) | |
tree | 4192a48431a4c6dc0712cbd9e80de29508a56a2b /package/network/ipv6/odhcp6c/files | |
parent | 196f434c965fa7b96d715407ab90f1869cfb29e9 (diff) | |
download | upstream-02c763c4ab60b930b69a892860550527fadad85c.tar.gz upstream-02c763c4ab60b930b69a892860550527fadad85c.tar.bz2 upstream-02c763c4ab60b930b69a892860550527fadad85c.zip |
odhcp6c: Revert to slightly modified version of old behaviour
Latest changes broke source-restriction of on-link routes. Restoring
old-behaviour but adding correct source-restrictions which prevents
the offlink handler to remove the on-link route.
SVN-Revision: 39454
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.script | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script index 5a3b7ecba6..929ab4eed2 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script @@ -50,7 +50,7 @@ setup_interface () { entry="${entry#*,}" local valid="${entry%%,*}" - proto_add_ipv6_address "$addr" "$mask" "$preferred" "$valid" + proto_add_ipv6_address "$addr" "$mask" "$preferred" "$valid" 1 done for entry in $RA_ROUTES; do @@ -65,7 +65,8 @@ setup_interface () { local metric="${entry%%,*}" if [ -z "$SOURCE_ROUTING" -o -z "$gw" ]; then - proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" + proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "::/128" + proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$addr/$mask" else proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "::/128" for prefix in $PREFIXES $ADDRESSES; do |