- (dtucker) platform.c session.c] Move the USE_LIBIAF fragment into
[openssh-git.git] / regress / portnum.sh
blob1de0680fe1221935f6fff93da6b242e180b2143d
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"
6 badport() {
7 port=$1
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"
13 goodport() {
14 port=$1
15 verbose "$tid: valid port $port"
16 if ${SSH} -F $OBJ/ssh_proxy -p $port somehost true 2>/dev/null ; then
18 else
19 fail "$tid rejected valid port $port"
23 badport 0
24 badport 65536
25 badport 131073
26 badport 2000blah
27 badport blah2000
29 goodport 1
30 goodport 22
31 goodport 2222
32 goodport 22222
33 goodport 65535