This commit updates the MLE attach process so that in the first attach
cycle device tries a total of six MLE Parent Requests, the first two
to routers only followed by four to routers and REEDs. For example,
the six Parent Request message will be used before device can decide
to act the leader. An MTD in the next attach attempt (if cannot find a
parent in first attempt cycle), will go to the model of two Parent
Requests (first to routers, then to routers/REEDs).
This change impacts the time it takes for a device to start as leader
(due to increased number of Parent Request and wait time). This commit
updates different test scripts to address the change in the wait
time. It adds a new `config.LEADER_STARTUP_DELAY` constants which is
used for wait time for leader to start.
When initializing, we should use randomly generated network parameters
instead of default ones, to eliminate the possibility of unintentional
use of default credentials.
This commit fixes TMF issues related to the Host tun interface.
- Do not pass TMF messages to Host tun interface
- Backbone TMF (also using port 61631) keeps passing TMF messages to
Host tun interface
- Re-enable packet filters for ALOC/RLOC destined and TMF packets for
PLAT_NETIF and PLAT_UDP
This makes kill commands in pty checks run with sudo. Otherwise
ot-daemon won't be killed and has to exit by itself, which makes
posix-pty-daemon fail sometimes.
This commit adds a max power table for POSIX platform, which can
customize the max allowed transmit power of each channel with the
command line argument --max-power-table.
Listen for mld reports sent by kernel to capture user multicast group
join and forward the addresses to OpenThread interface.
See openthread/wpantund#444 for more background.