mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:59:40 +02:00
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
This commit is contained in:
parent
c59687e88f
commit
95a399ee5c
@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=ipv6-support
|
||||
PKG_VERSION:=2012-12-10
|
||||
PKG_VERSION:=2012-12-11
|
||||
PKG_RELEASE:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user