5 UDP_SRC=127.0.0.1:10501
6 UDP_DST=127.0.0.1:10502
10 if test $1 -eq 0; then
13 echo -e "\033[31mFAIL"
18 if test $# -ne 0; then
19 if test $# -eq 1; then
21 else if test $# -eq 4; then
27 echo "unexpected number of arguments"
33 echo -n "Testing eth->can: "
34 cegwbench -s udp@$UDP_SRC -d can@$CAN -n $N -m $MODE -t 1 &> /dev/zero
37 echo -n "Testing can->eth: "
38 cegwbench -s can@vcan0 -d udp@$UDP_DST -n $N -m $MODE -t 1 &> /dev/zero