ipv6-support: Add support for NPT status tracking

SVN-Revision: 34609
v19.07.3_mercusys_ac12_duma
Steven Barth 12 years ago
parent cd76023e97
commit faba477274

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ipv6-support
PKG_VERSION:=2012-12-08
PKG_VERSION:=2012-12-10
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk

@ -134,11 +134,12 @@ announce_prefix() {
# Always announce the ULA when doing NPT
[ "$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"
[ -n "$valid" ] && msg="$msg"', "valid": '"$valid"', "preferred": '"$prefer"
[ -z "$cmd" ] && cmd=newprefix
[ "$prefix_action" == "npt" ] && msg="$msg"', "npt": 1'
ubus call 6distributed "$cmd" "$msg}"
}

Loading…
Cancel
Save