summaryrefslogtreecommitdiff
path: root/scripts/get-taprio-pcap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/get-taprio-pcap.sh')
-rwxr-xr-xscripts/get-taprio-pcap.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/get-taprio-pcap.sh b/scripts/get-taprio-pcap.sh
new file mode 100755
index 0000000..82d007b
--- /dev/null
+++ b/scripts/get-taprio-pcap.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+. scripts/lava-common.sh
+
+iface=$(find_vland_iface)
+packets='600000'
+port='7788'
+lava-wait udp-tai-tx
+# TODO make port/packet count configurable
+tcpdump -c "$packets" -i "$iface" -w tsn.pcap -j adapter_unsynced -tt \
+ --time-stamp-precision=nano port "$port"
+echo "talker_strict :: udp port $port" > sched_filter