aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c/files
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-06-10 15:54:24 +0000
committerSteven Barth <steven@midlink.org>2015-06-10 15:54:24 +0000
commitc894b37c47e01de924b5ef52fb414599fcc42fd6 (patch)
treef022a7cbf2b518e147fbd2c8304d29f02a9705ac /package/network/ipv6/odhcp6c/files
parent274d8e8dcf1f17f0f6d8caff1b7a92495187e00d (diff)
downloadmaster-187ad058-c894b37c47e01de924b5ef52fb414599fcc42fd6.tar.gz
master-187ad058-c894b37c47e01de924b5ef52fb414599fcc42fd6.tar.bz2
master-187ad058-c894b37c47e01de924b5ef52fb414599fcc42fd6.zip
odhcp6c: work around RIOs matching PIOs as sent by some apple routers
Thanks to Mikael Abrahamsson for reporting. Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45941 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.script4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script
index 650c9b2e8f..84eb706ebc 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.script
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script
@@ -88,6 +88,10 @@ setup_interface () {
if [ -z "$gw" ]; then
proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid"
+
+ # work around if there is a PIO matching a RIO
+ # Linux seems to prefer source-dest over dest-only even if metric is higher
+ proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$addr/$mask"
else
for prefix in $PREFIXES $ADDRESSES; do
local paddr="${prefix%%,*}"