From 798eb679326b9a28dbc07a6a375e8d45a387bc09 Mon Sep 17 00:00:00 2001 From: jhughesbiot Date: Tue, 2 Jan 2024 09:52:18 -0700 Subject: [PATCH] Change buffer option in network and test module capture files so packets are written immediately and prevent early file closure --- modules/network/base/bin/capture | 2 +- modules/test/base/bin/capture | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/network/base/bin/capture b/modules/network/base/bin/capture index 59ffb4118..224d4e0c5 100644 --- a/modules/network/base/bin/capture +++ b/modules/network/base/bin/capture @@ -38,7 +38,7 @@ fi # Create the output directory and start the capture mkdir -p $PCAP_DIR chown $HOST_USER $PCAP_DIR -tcpdump -i $INTERFACE -w $PCAP_DIR/$PCAP_FILE -Z $HOST_USER & +tcpdump -U -i $INTERFACE -w $PCAP_DIR/$PCAP_FILE -Z $HOST_USER & #Small pause to let the capture to start sleep 1 \ No newline at end of file diff --git a/modules/test/base/bin/capture b/modules/test/base/bin/capture index 69fa916c3..180b447cf 100644 --- a/modules/test/base/bin/capture +++ b/modules/test/base/bin/capture @@ -27,7 +27,7 @@ INTERFACE=$2 # Create the output directory and start the capture mkdir -p $PCAP_DIR chown $HOST_USER $PCAP_DIR -tcpdump -i $INTERFACE -w $PCAP_DIR/$PCAP_FILE -Z $HOST_USER & +tcpdump -U -i $INTERFACE -w $PCAP_DIR/$PCAP_FILE -Z $HOST_USER & # Small pause to let the capture to start sleep 1 \ No newline at end of file