Source-Changes-HG archive

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

[src/trunk]: src/tests/net Do netstat -a for an appropriate protocol



details:   https://anonhg.NetBSD.org/src/rev/eb69f2fc0e02
branches:  trunk
changeset: 824802:eb69f2fc0e02
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Jun 19 09:20:29 2017 +0000

description:
Do netstat -a for an appropriate protocol

diffstat:

 tests/net/net_common.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r be74d99f7608 -r eb69f2fc0e02 tests/net/net_common.sh
--- a/tests/net/net_common.sh   Mon Jun 19 03:21:31 2017 +0000
+++ b/tests/net/net_common.sh   Mon Jun 19 09:20:29 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: net_common.sh,v 1.18 2017/06/02 01:18:51 ozaki-r Exp $
+#      $NetBSD: net_common.sh,v 1.19 2017/06/19 09:20:29 ozaki-r Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -157,7 +157,11 @@
        pid=$!
        echo $pid > $NC_PID
 
-       $DEBUG && rump.netstat -a -f inet
+       if [ $proto = ipv4 ]; then
+               $DEBUG && rump.netstat -a -f inet
+       else
+               $DEBUG && rump.netstat -a -f inet6
+       fi
 
        export RUMP_SERVER=$backup
 



Home | Main Index | Thread Index | Old Index