diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh
index 0719f3e3c8faabda4c53d8d80a702250006e3ffa..e14d453e82a8e4d5ba92f4f52aa9aac901d6a395 100644
--- a/lustre/tests/sanity.sh
+++ b/lustre/tests/sanity.sh
@@ -3605,13 +3605,17 @@ test_99f() {
 run_test 99f "cvs commit ======================================="
 
 test_100() {
+	[ "$NETTYPE" = tcp ] || \
+		{ skip "TCP secure port test, not useful for NETTYPE=$NETTYPE" && \
+			return ; }
+
 	remote_ost_nodsh && skip "remote OST with nodsh" && return
 	remote_mds_nodsh && skip "remote MDS with nodsh" && return
 	remote_servers || \
 		{ skip "useless for local single node setup" && return; }
 
 	netstat -tna | ( rc=1; while read PROT SND RCV LOCAL REMOTE STAT; do
-		[ "$PROT" != "$NETTYPE" ] && continue
+		[ "$PROT" != "tcp" ] && continue
 		RPORT=$(echo $REMOTE | cut -d: -f2)
 		[ "$RPORT" != "$ACCEPTOR_PORT" ] && continue