1 # $OpenBSD: portnum.sh,v 1.1 2009/08/13 00:57:17 djm Exp $
2 # Placed in the Public Domain.
4 tid
="port number parsing"
8 verbose
"$tid: invalid port $port"
9 if ${SSH} -F $OBJ/ssh_proxy
-p $port somehost true
2>/dev
/null
; then
10 fail
"$tid accepted invalid port $port"
15 verbose
"$tid: valid port $port"
16 if ${SSH} -F $OBJ/ssh_proxy
-p $port somehost true
2>/dev
/null
; then
19 fail
"$tid rejected valid port $port"