Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net tests: enable start_nc_server to have extra option...



details:   https://anonhg.NetBSD.org/src/rev/a3b6087195a5
branches:  trunk
changeset: 372237:a3b6087195a5
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Nov 02 09:35:12 2022 +0000

description:
tests: enable start_nc_server to have extra options for nc

diffstat:

 tests/net/net_common.sh |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r e6c910e4279c -r a3b6087195a5 tests/net/net_common.sh
--- a/tests/net/net_common.sh   Wed Nov 02 09:01:42 2022 +0000
+++ b/tests/net/net_common.sh   Wed Nov 02 09:35:12 2022 +0000
@@ -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 @@
        local port=$2
        local outfile=$3
        local proto=${4:-ipv4}
+       local extra_opts="$5"
        local backup=$RUMP_SERVER
        local opts=
 
@@ -149,6 +150,7 @@
        else
                opts="-l -6"
        fi
+       opts="$opts $extra_opts"
 
        env LD_PRELOAD=/usr/lib/librumphijack.so nc $opts $port > $outfile &
        echo $! > $NC_PID



Home | Main Index | Thread Index | Old Index