diff options
| author | ozaki-r <ozaki-r@NetBSD.org> | 2022-11-02 09:35:12 +0000 |
|---|---|---|
| committer | ozaki-r <ozaki-r@NetBSD.org> | 2022-11-02 09:35:12 +0000 |
| commit | f485b29fb8a7cf6e04bf5f4500ca2b80ca6f1008 (patch) | |
| tree | 5410366072c8e9daf03ca031bec366dd17ac5888 | |
| parent | ba8186bcdca682824b4da94a2cd0c0ff83299e76 (diff) | |
tests: enable start_nc_server to have extra options for nc
| -rw-r--r-- | tests/net/net_common.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/net/net_common.sh b/tests/net/net_common.sh index 0cb791ccd6b..cf53217b1fd 100644 --- a/tests/net/net_common.sh +++ b/tests/net/net_common.sh @@ -1,4 +1,4 @@ -# $NetBSD: net_common.sh,v 1.43 2021/11/25 14:17:22 hannken Exp $ +# $NetBSD: net_common.sh,v 1.44 2022/11/02 09:35:12 ozaki-r Exp $ # # Copyright (c) 2016 Internet Initiative Japan Inc. # All rights reserved. @@ -139,6 +139,7 @@ start_nc_server() local port=$2 local outfile=$3 local proto=${4:-ipv4} + local extra_opts="$5" local backup=$RUMP_SERVER local opts= @@ -149,6 +150,7 @@ start_nc_server() else opts="-l -6" fi + opts="$opts $extra_opts" env LD_PRELOAD=/usr/lib/librumphijack.so nc $opts $port > $outfile & echo $! > $NC_PID |
