summaryrefslogtreecommitdiff
path: root/scripts/send-udp-tai.sh
blob: 04f0707b0ec64d5628b426f64b809932c0937400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

. scripts/lava-common.sh

git clone https://github.com/apalos/taprio-tests.git
pushd taprio-tests && make
popd
delay='1000'
# cycle must match taprio schedule on the host
cycle='1000000'

now=`date +%s%N`
i=$(($now + 37000000000))
base=$(($i - ($i % 1000000000) + 100000))
iface=$(find_vland_iface)
# TODO make args configurable
./taprio-tests/udp_tai -i "$iface" -b "$base" -P "$cycle" -p 90 -d "$delay" -u 7788 &