Commit f00f55d7 authored by Laine Stump's avatar Laine Stump

filter for proper IP address in tcpdump looking for broadcast packet

In the no-mac-broadcast test, a ping is sent to, but
tcpdump is set to look for packets with a destination IP of Change it to check for the correct IP address and
also for mac broadcast (which is what the no-mac-broadcast filter
actually looks at). This should eliminate the "false success" that was
happening because tcpdump wasn't actually seeing the broadcast packet
the guest was sending, as well as catching the "false failure" caused
by tcpdump seeing other traffic from the guest unrelated to the test
(which happened to be broadcasts sent to
Signed-off-by: default avatarLaine Stump <>
Review-by: default avatarStefan Berger <>
Reviewed-by: default avatarDaniel P. Berrangé <>
parent ce11f180
......@@ -80,7 +80,7 @@ ok($ebtable =~ "-d Broadcast -j DROP", "check ebtables entry for \"-d Broadcast
# prepare tcpdump
diag "prepare tcpdump";
system("/usr/sbin/tcpdump -v -i virbr0 -n host 2> /tmp/tcpdump.log &");
system("/usr/sbin/tcpdump -v -i virbr0 -n host and ether host ff:ff:ff:ff:ff:ff 2> /tmp/tcpdump.log &");
# log into guest
diag "ssh'ing into $guestip";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment