From 39058bdbf31aa7136d2c09e2c9dca68851d12ac3 Mon Sep 17 00:00:00 2001 From: Robert McMahon Date: Fri, 13 Feb 2026 14:07:28 -0800 Subject: [PATCH] Output temporary pcap filename for debugging Display the name of the temporary pcap file being used for capture. This helps with debugging and allows users to inspect the file if needed. Co-authored-by: Cursor --- test_monitor_tshark.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test_monitor_tshark.sh b/test_monitor_tshark.sh index 7284b6e..7eef7ea 100755 --- a/test_monitor_tshark.sh +++ b/test_monitor_tshark.sh @@ -134,6 +134,7 @@ echo "Capturing packets for $DURATION seconds..." # Use a temporary pcap file to avoid field extraction errors during capture # Capture to file first, then parse it - this prevents tshark from exiting early TEMP_PCAP=$(mktemp /tmp/tshark_capture_XXXXXX.pcap) +echo "Capturing to temporary file: $TEMP_PCAP" set +e # Temporarily disable exit on error # Capture to pcap file - this won't error on missing fields