selftests: net: add test for destination in broadcast packets
authorOscar Maes <oscmaes92@gmail.com>
Tue, 2 Sep 2025 15:02:40 +0000 (17:02 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 9 Sep 2025 09:29:58 +0000 (11:29 +0200)
commitbf59028ea8d42e8d10bb3d847c9982488ee9e3a0
tree8b47912b201aa4b462b481fb1d24f5d5b52fcf22
parentd3b28612bc5500133260aaf36794a0a0c287d61b
selftests: net: add test for destination in broadcast packets

Add test to check the broadcast ethernet destination field is set
correctly.

This test sends a broadcast ping, captures it using tcpdump and
ensures that all bits of the 6 octet ethernet destination address
are correctly set by examining the output capture file.

Co-developed-by: Brett A C Sheffield <bacs@librecast.net>
Signed-off-by: Brett A C Sheffield <bacs@librecast.net>
Signed-off-by: Oscar Maes <oscmaes92@gmail.com>
Link: https://patch.msgid.link/20250902150240.4272-1-oscmaes92@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/broadcast_ether_dst.sh [new file with mode: 0755]