[mlr] send BMLR.ntf for de-registration (#7227)

BBR should send BMLR.ntf to the backbone upon successful
de-registration as well.
This commit is contained in:
Eduardo Montoya
2021-12-09 09:12:39 -08:00
committed by GitHub
parent 270dc21875
commit e708324c31
2 changed files with 7 additions and 3 deletions
+3
View File
@@ -242,6 +242,9 @@ void Manager::HandleMulticastListenerRegistration(const Coap::Message &aMessage,
if (timeout == 0)
{
mMulticastListenersTable.Remove(address);
// Put successfully de-registered addresses at the end of `addresses`.
addresses[kIp6AddressesNumMax - (++successAddressNum)] = address;
}
else
{
@@ -189,11 +189,12 @@ class BBR_5_11_01(thread_cert.TestCase):
thread_meshcop.tlv.ipv6_addr == ['{MA5}']
and thread_nm.tlv.timeout == 0
""")
# Verify PBBR not sends `/b/bmr` on the Backbone link for MA5.
pkts.filter_eth_src(PBBR_ETH).filter_coap_request('/b/bmr').filter(f"""
# Verify PBBR sends `/b/bmr` on the Backbone link for MA5 with timeout equal to zero.
pkts.filter_eth_src(PBBR_ETH).filter_coap_request('/b/bmr').must_next().must_verify(f"""
thread_meshcop.tlv.ipv6_addr == ['{MA5}']
and thread_bl.tlv.timeout == 0
and ipv6.src.is_link_local
""").must_not_next()
""")
if __name__ == '__main__':