Module Name: src Committed By: ozaki-r Date: Mon Jun 19 09:20:29 UTC 2017
Modified Files: src/tests/net: net_common.sh Log Message: Do netstat -a for an appropriate protocol To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/tests/net/net_common.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/net/net_common.sh diff -u src/tests/net/net_common.sh:1.18 src/tests/net/net_common.sh:1.19 --- src/tests/net/net_common.sh:1.18 Fri Jun 2 01:18:51 2017 +++ src/tests/net/net_common.sh Mon Jun 19 09:20:29 2017 @@ -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 @@ start_nc_server() 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