mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:15:00 +02:00
ipv6-support: Add support for NPT status tracking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34609 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
756e51eb03
commit
7e7f7d88cf
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ipv6-support
|
PKG_NAME:=ipv6-support
|
||||||
PKG_VERSION:=2012-12-08
|
PKG_VERSION:=2012-12-10
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
@ -134,11 +134,12 @@ announce_prefix() {
|
|||||||
# Always announce the ULA when doing NPT
|
# Always announce the ULA when doing NPT
|
||||||
[ "$prefix" == "$ula" -a "$prefix_action" == "npt" ] && prefix_action="distribute"
|
[ "$prefix" == "$ula" -a "$prefix_action" == "npt" ] && prefix_action="distribute"
|
||||||
|
|
||||||
[ "$prefix_action" == "distribute" ] && {
|
[ "$prefix_action" == "distribute" -o "$prefix_action" == "npt" ] && {
|
||||||
local msg='{"network": "'"$network"'", "prefix": "'"$addr"'", "length": '"$length"
|
local msg='{"network": "'"$network"'", "prefix": "'"$addr"'", "length": '"$length"
|
||||||
[ -n "$valid" ] && msg="$msg"', "valid": '"$valid"', "preferred": '"$prefer"
|
[ -n "$valid" ] && msg="$msg"', "valid": '"$valid"', "preferred": '"$prefer"
|
||||||
[ -z "$cmd" ] && cmd=newprefix
|
[ -z "$cmd" ] && cmd=newprefix
|
||||||
|
|
||||||
|
[ "$prefix_action" == "npt" ] && msg="$msg"', "npt": 1'
|
||||||
ubus call 6distributed "$cmd" "$msg}"
|
ubus call 6distributed "$cmd" "$msg}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user