OSDN Git Service

Merge branch 'selftests-net-bridge-add-tests-for-igmpv3'
authorJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 17:50:32 +0000 (10:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 17:50:32 +0000 (10:50 -0700)
commit23306008edd9bd21785229a0b8d13e20c3e05419
treec56fb7f1af71547d550e555dcfff6b171fa82679
parent043d2be2a78202fceb31647cc1802e0183ce09e2
parent414ea3754149847ec9491de9e9923750f5447331
Merge branch 'selftests-net-bridge-add-tests-for-igmpv3'

Nikolay Aleksandrov says:

====================
selftests: net: bridge: add tests for IGMPv3

This set adds tests for the bridge's new IGMPv3 support. The tests use
precooked packets which are sent via mausezahn and the resulting state
after each test is checked for proper X,Y sets, (*,G) source list, source
list entry timers, (S,G) existence and flags, packet forwarding and
blocking, exclude group expiration and (*,G) auto-add. The first 3 patches
prepare the existing IGMPv2 tests, then patch 4 adds new helpers which are
used throughout the rest of the v3 tests.
The following new tests are added:
 - base case: IGMPv3 report 239.10.10.10 is_include (A)
 - include -> allow report
 - include -> is_include report
 - include -> is_exclude report
 - include -> to_exclude report
 - exclude -> allow report
 - exclude -> is_include report
 - exclude -> is_exclude report
 - exclude -> to_exclude report
 - include -> block report
 - exclude -> block report
 - exclude timeout (move to include + entry deletion)
 - S,G port entry automatic add to a *,G,exclude port

The variable names and set notation are the same as per RFC 3376,
for more information check RFC 3376 sections 4.2.15 and 6.4.1.
MLDv2 tests will be added by a separate patch-set.
====================

Link: https://lore.kernel.org/r/20201027185934.227040-1-razor@blackwall.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>