2
0
forked from Ivasoft/openwrt

ipv6: remove now unneeded source-dest-routing workarounds

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45700
This commit is contained in:
Steven Barth
2015-05-19 07:53:08 +00:00
parent 1296956908
commit 08f057c703
9 changed files with 19 additions and 37 deletions

View File

@@ -86,10 +86,9 @@ setup_interface () {
entry="${entry#*,}"
local metric="${entry%%,*}"
if [ -z "$SOURCE_ROUTING" -o -z "$gw" ]; then
if [ -z "$gw" ]; then
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid"
else
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "::/128"
for prefix in $PREFIXES $ADDRESSES; do
local paddr="${prefix%%,*}"
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$paddr"