mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
selftests: mptcp: connect: test name in pcap file
Even if the pcap prefix is printed in the test, it is clearer if this prefix also include the test name: mptcp_connect. With this, it is easily possible to find out which pcap was produced by which test, and easily delete the right ones. Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20260812-net-next-mptcp-misc-feat-7-3-v1-7-1905a818f6cb@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1aa38a1581
commit
158765a0e5
|
|
@ -212,8 +212,8 @@ if $checksum; then
|
|||
fi
|
||||
|
||||
if $capture; then
|
||||
rndh="${ns1:4}"
|
||||
mptcp_lib_pr_info "Packet capture files will have this prefix: ${rndh}-"
|
||||
capprefix="mptcp_connect-${ns1:4}"
|
||||
mptcp_lib_pr_info "pcap will have this prefix: ${capprefix}-"
|
||||
fi
|
||||
|
||||
set_ethtool_flags() {
|
||||
|
|
@ -372,7 +372,7 @@ do_transfer()
|
|||
capuser="-Z $SUDO_USER"
|
||||
fi
|
||||
|
||||
local capfile="${rndh}-${connector_ns:0:3}-${listener_ns:0:3}-${cl_proto}-${srv_proto}-${connect_addr}-${port}"
|
||||
local capfile="${capprefix}-${connector_ns:0:3}-${listener_ns:0:3}-${cl_proto}-${srv_proto}-${connect_addr}-${port}"
|
||||
local capopt="-i any -s 65535 -B 32768 ${capuser}"
|
||||
|
||||
ip netns exec ${listener_ns} tcpdump ${capopt} \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user