diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2016-07-14 15:49:58 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2016-07-14 15:49:58 -0400 |
commit | 436011fee88fb1f8e2941c518e5f7bd11d66559d (patch) | |
tree | 394cbb0e3827e1743121dab39df2f75d3b6d8955 /test.sh | |
parent | be097ac2736a45d58b0e2cb345c950b8921e9503 (diff) | |
download | udpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.tar.xz udpastcp-436011fee88fb1f8e2941c518e5f7bd11d66559d.zip |
Rewrite args parsing to prepare for libpcap.
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $!" |