Mercurial > dropbear
comparison cli-runopts.c @ 1465:f7a53832501d
cli_bind_address_connect
* replaces -b dummy option in dbclient to be similar with openssh -b option
* useful in multi-wan connections
author | houseofkodai <karthik@houseofkodai.in> |
---|---|
date | Mon, 01 May 2017 08:26:15 +0530 |
parents | e8f67918fdc9 |
children | f787f60f8e45 |
comparison
equal
deleted
inserted
replaced
1464:ad637c9e0f6f | 1465:f7a53832501d |
---|---|
90 #endif | 90 #endif |
91 #if DROPBEAR_USER_ALGO_LIST | 91 #if DROPBEAR_USER_ALGO_LIST |
92 "-c <cipher list> Specify preferred ciphers ('-c help' to list options)\n" | 92 "-c <cipher list> Specify preferred ciphers ('-c help' to list options)\n" |
93 "-m <MAC list> Specify preferred MACs for packet verification (or '-m help')\n" | 93 "-m <MAC list> Specify preferred MACs for packet verification (or '-m help')\n" |
94 #endif | 94 #endif |
95 "-b bind_address\n" | |
95 "-V Version\n" | 96 "-V Version\n" |
96 #if DEBUG_TRACE | 97 #if DEBUG_TRACE |
97 "-v verbose (compiled with DEBUG_TRACE)\n" | 98 "-v verbose (compiled with DEBUG_TRACE)\n" |
98 #endif | 99 #endif |
99 ,DROPBEAR_VERSION, cli_opts.progname, | 100 ,DROPBEAR_VERSION, cli_opts.progname, |
123 #endif | 124 #endif |
124 /* a flag (no arg) if 'next' is NULL, a string-valued option otherwise */ | 125 /* a flag (no arg) if 'next' is NULL, a string-valued option otherwise */ |
125 OPT_OTHER | 126 OPT_OTHER |
126 } opt; | 127 } opt; |
127 unsigned int cmdlen; | 128 unsigned int cmdlen; |
128 char* dummy = NULL; /* Not used for anything real */ | |
129 | 129 |
130 char* recv_window_arg = NULL; | 130 char* recv_window_arg = NULL; |
131 char* keepalive_arg = NULL; | 131 char* keepalive_arg = NULL; |
132 char* idle_timeout_arg = NULL; | 132 char* idle_timeout_arg = NULL; |
133 char *host_arg = NULL; | 133 char *host_arg = NULL; |
164 cli_opts.agent_keys_loaded = 0; | 164 cli_opts.agent_keys_loaded = 0; |
165 #endif | 165 #endif |
166 #if DROPBEAR_CLI_PROXYCMD | 166 #if DROPBEAR_CLI_PROXYCMD |
167 cli_opts.proxycmd = NULL; | 167 cli_opts.proxycmd = NULL; |
168 #endif | 168 #endif |
169 cli_opts.bind_address = NULL; | |
169 #ifndef DISABLE_ZLIB | 170 #ifndef DISABLE_ZLIB |
170 opts.compress_mode = DROPBEAR_COMPRESS_ON; | 171 opts.compress_mode = DROPBEAR_COMPRESS_ON; |
171 #endif | 172 #endif |
172 #if DROPBEAR_USER_ALGO_LIST | 173 #if DROPBEAR_USER_ALGO_LIST |
173 opts.cipher_list = NULL; | 174 opts.cipher_list = NULL; |
312 case 'V': | 313 case 'V': |
313 print_version(); | 314 print_version(); |
314 exit(EXIT_SUCCESS); | 315 exit(EXIT_SUCCESS); |
315 break; | 316 break; |
316 case 'b': | 317 case 'b': |
317 next = &dummy; | 318 next = &cli_opts.bind_address; |
318 /* FALLTHROUGH */ | 319 break; |
319 default: | 320 default: |
320 fprintf(stderr, | 321 fprintf(stderr, |
321 "WARNING: Ignoring unknown option -%c\n", c); | 322 "WARNING: Ignoring unknown option -%c\n", c); |
322 break; | 323 break; |
323 } /* Switch */ | 324 } /* Switch */ |