diff options
author | Steven Barth <steven@midlink.org> | 2012-12-11 16:56:37 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2012-12-11 16:56:37 +0000 |
commit | 381b57a6ea6990b5ae7a5fd625581674fee2bb5f (patch) | |
tree | 3e36de8c28e899cf14becb50b926f90f953ff228 /package/network/ipv6/ipv6-support/files | |
parent | 91b24ac85b004a0a0821c7f6c9a68633ee6b810d (diff) | |
download | master-187ad058-381b57a6ea6990b5ae7a5fd625581674fee2bb5f.tar.gz master-187ad058-381b57a6ea6990b5ae7a5fd625581674fee2bb5f.tar.bz2 master-187ad058-381b57a6ea6990b5ae7a5fd625581674fee2bb5f.zip |
ipv6-support: Make ULA addresses secondary
* Deprecates ULA prefixes when there are other public prefixes
* Fixes issues with clients using incorrect source addresses
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34630 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/ipv6-support/files')
-rw-r--r-- | package/network/ipv6/ipv6-support/files/support.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/ipv6/ipv6-support/files/support.sh b/package/network/ipv6/ipv6-support/files/support.sh index 8e8458b888..f723e6e5a0 100644 --- a/package/network/ipv6/ipv6-support/files/support.sh +++ b/package/network/ipv6/ipv6-support/files/support.sh @@ -111,6 +111,7 @@ announce_prefix() { local prefix="$1" local network="$2" local cmd="$3" + local type="$4" local addr=$(echo "$prefix" | cut -d/ -f1) local rem=$(echo "$prefix" | cut -d/ -f2) @@ -140,6 +141,7 @@ announce_prefix() { [ -z "$cmd" ] && cmd=newprefix [ "$prefix_action" == "npt" ] && msg="$msg"', "npt": 1' + [ "$type" == "secondary" ] && msg="$msg"', "secondary": 1' ubus call 6distributed "$cmd" "$msg}" } @@ -381,7 +383,7 @@ enable_ula_prefix() { } # Announce ULA - [ -n "$ula_prefix" ] && announce_prefix "$ula_prefix" "$network" + [ -n "$ula_prefix" ] && announce_prefix "$ula_prefix" "$network" newprefix secondary } |