Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftest: Add selftest for multicast address notifications

This commit adds a new kernel selftest to verify RTNLGRP_IPV4_MCADDR
and RTNLGRP_IPV6_MCADDR notifications. The test works by adding and
removing a dummy interface and then confirming that the system
correctly receives join and removal notifications for the 224.0.0.1
and ff02::1 multicast addresses.

The test relies on the iproute2 version to be 6.13+.

Tested by the following command:
$ vng -v --user root --cpus 16 -- \
make -C tools/testing/selftests TARGETS=net
TEST_PROGS=rtnetlink_notification.sh \
TEST_GEN_PROGS="" run_tests

Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Link: https://patch.msgid.link/20250614053522.623820-1-yuyanghuang@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yuyang Huang and committed by
Jakub Kicinski
e74058f5 67f2efc4

+71
+1
tools/testing/selftests/net/Makefile
··· 41 41 TEST_PROGS += link_netns.py 42 42 TEST_PROGS += nl_netdev.py 43 43 TEST_PROGS += rtnetlink.py 44 + TEST_PROGS += rtnetlink_notification.sh 44 45 TEST_PROGS += srv6_end_dt46_l3vpn_test.sh 45 46 TEST_PROGS += srv6_end_dt4_l3vpn_test.sh 46 47 TEST_PROGS += srv6_end_dt6_l3vpn_test.sh