diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get-taprio-pcap.sh | 12 | ||||
-rwxr-xr-x | scripts/send-udp-tai.sh | 1 |
2 files changed, 13 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 diff --git a/scripts/send-udp-tai.sh b/scripts/send-udp-tai.sh index 8a609eb..7c74083 100755 --- a/scripts/send-udp-tai.sh +++ b/scripts/send-udp-tai.sh @@ -5,6 +5,7 @@ git clone https://github.com/apalos/taprio-tests.git pushd taprio-tests && make popd + now=`date +%s%N` i=$(($now + 37000000000)) base=$(($i - ($i % 1000000000) + 100000)) |