From 436011fee88fb1f8e2941c518e5f7bd11d66559d Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Thu, 14 Jul 2016 15:49:58 -0400 Subject: Rewrite args parsing to prepare for libpcap. --- test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.sh') diff --git a/test.sh b/test.sh index a82020a..62f3b93 100755 --- a/test.sh +++ b/test.sh @@ -7,9 +7,9 @@ test_bidi() { ( pids= trap 'kill $pids' INT TERM EXIT - $UDPASTCP client "$1" 36563 "$1" 64109 & + $UDPASTCP -m client -h "$1" -p 36563 -H "$1" -P 64109 & pids="$!" - $UDPASTCP server "$1" 64109 "$1" 41465 & + $UDPASTCP -m server -h "$1" -p 64109 -H "$1" -P 41465 & pids="$pids $!" ( ( sleep 0.5; echo BBBBBBBB; ) | socat "udp-listen:41465,pf=${2}" - ) & pids="$pids $!" -- cgit v1.2.3-54-g00ecf