Skip to content

Commit

Permalink
test: debug, and partial revert, of tshark -> tcpdump change
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Jan 1, 2025
1 parent 68957ff commit 2147b3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ cap_start()
iface=lo
fi
port=${1:-514}
# dprint "tshark -Qni $iface -w ${CAP} port $port"
tshark -Qni "$iface" -w "${CAP}" port "$port" 2>/dev/null &
TPID="$!"
echo "$TPID" >> "$DIR/PIDs"
Expand All @@ -129,8 +130,9 @@ cap_stop()

cap_dump()
{
command -v tcpdump >/dev/null 2>&1 || SKIP 'tcpdump missing'
tcpdump -Z root -nr "${CAP}" -vvv 2>/dev/null
# command -v tcpdump >/dev/null 2>&1 || SKIP 'tcpdump missing'
# tcpdump -Z root -nr "${CAP}" -vvv 2>/dev/null
tshark -r "${CAP}" 2>/dev/null
}

cap_find()
Expand Down

0 comments on commit 2147b3a

Please sign in to comment.