From 70142bb63b713211abfec5705993b4dd558e9268 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 28 Oct 2018 14:28:26 +0100 Subject: T931: fix passing arguments to tcpdump filter option. We need to pass all completion words rather than just the first since filters can contain whitespace. --- op-mode-definitions/traffic-dump.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'op-mode-definitions/traffic-dump.xml') diff --git a/op-mode-definitions/traffic-dump.xml b/op-mode-definitions/traffic-dump.xml index 00a809a7c..6d86f7423 100644 --- a/op-mode-definitions/traffic-dump.xml +++ b/op-mode-definitions/traffic-dump.xml @@ -17,7 +17,7 @@ - sudo tcpdump -n -i $4 $6 + sudo tcpdump -n -i $4 "${@:6}" Monitor traffic matching filter conditions @@ -29,7 +29,7 @@ - sudo tcpdump -n -i $4 -w $6 $8 + sudo tcpdump -n -i $4 -w $6 "${@:8}" Save a dump of traffic matching filter conditions to a file -- cgit v1.2.3