Re: [PATCH net-next 3/3] selftests: net: check multicast group user count

From: Vadim Fedorenko

Date: Wed Jul 01 2026 - 17:02:47 EST


On 30/06/2026 12:02, Yuyang Huang wrote:
Extend the RTM_GETMULTICAST dump test to verify IFA_MC_USERS for both
IPv4 and IPv6 multicast groups.

Run each protocol test in a fresh network namespace to avoid changing
host-network state or racing with unrelated multicast users. Join a
fixed multicast group twice using separate sockets and check that the
reported user count increases by two.

Signed-off-by: Yuyang Huang <sigefriedhyy@xxxxxxxxx>
---
tools/testing/selftests/net/rtnetlink.py | 101 ++++++++++++++++++++---
1 file changed, 90 insertions(+), 11 deletions(-)


Reviewed-by: Vadim Fedorenko <vadim.fedorenko@xxxxxxxxx>