]> www.infradead.org Git - users/hch/misc.git/commit
selftests/net: Add selftest for IPv4 RTM_GETMULTICAST support
authorYuyang Huang <yuyanghuang@google.com>
Fri, 7 Feb 2025 11:08:36 +0000 (20:08 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Feb 2025 10:26:53 +0000 (11:26 +0100)
commit4f280376e5318f17f7388999f9a0098ccaae931d
treec81a6634bba4b45f48d9981d2c8ec7fba792c5f4
parenteb4e17a1d915d3c550e5a58c4bf370659dbe0dc8
selftests/net: Add selftest for IPv4 RTM_GETMULTICAST support

This change introduces a new selftest case to verify the functionality
of dumping IPv4 multicast addresses using the RTM_GETMULTICAST netlink
message. The test utilizes the ynl library to interact with the
netlink interface and validate that the kernel correctly reports the
joined IPv4 multicast addresses.

To run the test, execute the following command:

$ vng -v --user root --cpus 16 -- \
    make -C tools/testing/selftests TARGETS=net \
    TEST_PROGS=rtnetlink.py 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/20250207110836.2407224-2-yuyanghuang@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/netlink/specs/rt_addr.yaml
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/lib/py/__init__.py
tools/testing/selftests/net/lib/py/ynl.py
tools/testing/selftests/net/rtnetlink.py [new file with mode: 0755]