[multicast-routing] block egress multicast packets from LLA (#8059)

According to the Spec, egress packets from LLA should not be
forwarded. Linux kernel doesn't automatically block such forwarding
so that we need to check this before adding the MFC entry.
This commit is contained in:
whd
2022-08-22 16:34:52 -07:00
committed by GitHub
parent 370d4dc0b5
commit 8942e7f895
2 changed files with 12 additions and 0 deletions
@@ -230,6 +230,17 @@ class TestMlr(thread_cert.TestCase):
# PBBR1 shouldn't forward the multicast ping request to the Backbone link
pkts.filter_eth_src(PBBR1_ETH).filter_ping_request(ping_ma2_2.icmpv6.echo.identifier).must_not_next()
#
# Verify pinging MA2 from R1's Link-Local address will not be forwarded to the Backbone link
#
# ROUTER1 should send the multicast ping request
ping_ma2_3 = pkts.filter_wpan_src64(ROUTER1).filter_AMPLFMA(mpl_seed_id=ROUTER1_RLOC16).filter_ping_request(
identifier=ping_ma2.icmpv6.echo.identifier + 1).must_next()
# PBBR1 shouldn't forward the multicast ping request to the Backbone link
pkts.filter_eth_src(PBBR1_ETH).filter_ping_request(ping_ma2_3.icmpv6.echo.identifier).must_not_next()
if __name__ == '__main__':
unittest.main()