Mercurial > dropbear
diff cli-runopts.c @ 62:20563735e8b5
just checkpointing
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 10 Aug 2004 17:09:52 +0000 |
parents | 6f091656c100 |
children | efb5e0b335cf |
line wrap: on
line diff
--- a/cli-runopts.c Mon Aug 09 08:18:37 2004 +0000 +++ b/cli-runopts.c Tue Aug 10 17:09:52 2004 +0000 @@ -48,6 +48,12 @@ #ifdef DROPBEAR_PUBKEY_AUTH "-i <identityfile> (multiple allowed)\n" #endif +#ifndef DISABLE_REMOTETCPFWD + "-L <listenport:remotehsot:reportport> Local port forwarding\n" +#endif +#ifndef DISABLE_TCPFWD_DIRECT + "-R <listenport:remotehost:remoteport> Remote port forwarding\n" +#endif ,DROPBEAR_VERSION, cli_opts.progname); } @@ -59,6 +65,12 @@ #ifdef DROPBEAR_PUBKEY_AUTH int nextiskey = 0; /* A flag if the next argument is a keyfile */ #endif +#ifdef DROPBEAR_CLI_LOCALTCP + int nextislocal = 0; +#endif +#ifdef DROPBEAR_CLI_REMOTETCP + int nextisremote = 0; +#endif @@ -72,6 +84,12 @@ #ifdef DROPBEAR_PUBKEY_AUTH cli_opts.pubkeys = NULL; #endif +#ifdef DROPBEAR_CLI_LOCALTCP + cli_opts.localports = NULL; +#endif +#ifdef DROPBEAR_CLI_REMOTETCP + cli_opts.remoteports = NULL; +#endif opts.nolocaltcp = 0; opts.noremotetcp = 0; /* not yet