selftests: pmtu: Add optional traffic captures for single tests
authorStefano Brivio <[email protected]>
Fri, 12 Oct 2018 21:54:14 +0000 (23:54 +0200)
committerDavid S. Miller <[email protected]>
Tue, 16 Oct 2018 05:37:28 +0000 (22:37 -0700)
commitbb059fb20447c869970ebd296010c1a822706c58
tree70918ca5b1d1c429e3428b1dd88906e9bd2d58d7
parent55bbc8ff4987d05b7d2f2d513caabd0a58fec021
selftests: pmtu: Add optional traffic captures for single tests

If --trace is passed as an option and tcpdump is available,
capture traffic for all relevant interfaces to per-test pcap
files named <test>_<interface>.pcap.

Signed-off-by: Stefano Brivio <[email protected]>
Reviewed-by: Sabrina Dubroca <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
tools/testing/selftests/net/pmtu.sh