[dua] Domain Unicast Address generation (#4854)

This commit includes
[Y] add `OPENTHREAD_CONFIG_DUA_ENABLE` option for DUA feature
[Y] generate DUA via SLAAC
[Y] update test script to verify communication via DUA
This commit is contained in:
Rongli Sun
2020-04-29 22:57:50 -07:00
committed by Jonathan Hui
parent 904e12d047
commit 2e85801083
16 changed files with 269 additions and 1 deletions
+12
View File
@@ -77,6 +77,12 @@ build_simulation()
"-DOT_THREAD_VERSION=${version}"
)
if [[ "${version}" == "1.2" ]]; then
options+=(
"-DOT_DUA=ON"
)
fi
if [[ "${VIRTUAL_TIME}" == 1 ]]; then
options+=("-DOT_SIMULATION_VIRTUAL_TIME=ON")
@@ -120,6 +126,12 @@ build_posix()
"-DOT_THREAD_VERSION=${version}"
)
if [[ "${version}" == "1.2" ]]; then
options+=(
"-DOT_DUA=ON"
)
fi
if [[ "${VIRTUAL_TIME}" == 1 ]]; then
options+=("-DOT_POSIX_VIRTUAL_TIME=ON")
fi