Skip to contentSkip to conversation

selftests: net: add test for destination in broadcast packets

PATCH Applied Oscar Maes 3 participants 3 messages Sep 2, 2025 – Sep 9, 2025

Subsystems (4)
lore
Share & tools
lore

Oscar Maes

author
#0 lore raw

PATCH v5 1/1 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.

---
v4 -> v5:
- Fixed Signed-off-by chain

v3 -> v4:
- Added Brett as co-author
- Wait for tcpdump to bind using slowwait

Links:
- Discussion: https://lore.kernel.org/netdev/[email protected]/
- Previous version: https://lore.kernel.org/netdev/[email protected]/

Thanks to Brett Sheffield for co-developing this selftest!

 tools/testing/selftests/net/Makefile          |  1 +
 .../selftests/net/broadcast_ether_dst.sh      | 83 +++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100755 tools/testing/selftests/net/broadcast_ether_dst.sh
tools/testing/selftests/net/Makefile +1 -0
index b31a71f2b372..56ad10ea6628 100644
@@ -115,6 +115,7 @@ TEST_PROGS += skf_net_off.sh
 TEST_GEN_FILES += skf_net_off
 TEST_GEN_FILES += tfo
 TEST_PROGS += tfo_passive.sh
+TEST_PROGS += broadcast_ether_dst.sh
 TEST_PROGS += broadcast_pmtu.sh
 TEST_PROGS += ipv6_force_forwarding.sh
 
tools/testing/selftests/net/broadcast_ether_dst.sh new file +83 -0

83 lines not on this page · raw message

Signature · 1 line
2.39.5
#1 lore raw
FYI: kernel test robot notices the stable kernel rule is not satisfied.

Hi,

Thanks for your patch.

FYI: kernel test robot notices the stable kernel rule is not satisfied.

The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Rule: add the tag "Cc: [email protected]" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH net v5] selftests: net: add test for destination in broadcast packets

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#2 lore raw
In reply to Oscar Maes
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Tue, 2 Sep 2025 17:02:40 +0200 you wrote:

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.

[...]

Here is the summary with links:
- [net,v5] selftests: net: add test for destination in broadcast packets

    https://git.kernel.org/netdev/net/c/bf59028ea8d4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html