diff options
author | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-10 16:46:59 +0000 |
---|---|---|
committer | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-10 16:46:59 +0000 |
commit | 7e7f7d88cf772f529a3c56c816d2d3b11a7df398 (patch) | |
tree | 2a34232b3de5f48fa485eded09796ac4f5b8e215 /package/network/ipv6/ipv6-support/files/support.sh | |
parent | 756e51eb0385334c1b0a8c17f516ab6690651b06 (diff) |
ipv6-support: Add support for NPT status tracking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/ipv6-support/files/support.sh')
-rw-r--r-- | package/network/ipv6/ipv6-support/files/support.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package/network/ipv6/ipv6-support/files/support.sh b/package/network/ipv6/ipv6-support/files/support.sh index 8a0e54043..8e8458b88 100644 --- a/package/network/ipv6/ipv6-support/files/support.sh +++ b/package/network/ipv6/ipv6-support/files/support.sh @@ -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}" } |