[thread-cert] add test to verify MED informs previous parent on reattach (#7005)

This commit verifies that MEDs can inform previous parent on reattach
with OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH enabled.
This commit is contained in:
Simon Lin
2021-09-16 21:00:15 -07:00
committed by GitHub
parent 063d7a1514
commit 7d91dd19c6
4 changed files with 215 additions and 1 deletions
@@ -199,4 +199,17 @@
#define OPENTHREAD_CONFIG_CLI_UART_RX_BUFFER_SIZE 640
#endif
/**
* @def OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
*
* Define as 1 for a child to inform its previous parent when it attaches to a new parent.
*
* If this feature is enabled, when a device attaches to a new parent, it will send an IP message (with empty payload
* and mesh-local IP address as the source address) to its previous parent.
*
*/
#ifndef OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH
#define OPENTHREAD_CONFIG_MLE_INFORM_PREVIOUS_PARENT_ON_REATTACH 1
#endif
#endif // OPENTHREAD_CORE_SIMULATION_CONFIG_H_