1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

New backend bitfield flags.

This commit is contained in:
Lars Brinkhoff 2020-03-03 14:14:42 +01:00 committed by Simon Tatham
parent a8bb6456d1
commit 269bd7e309
6 changed files with 10 additions and 5 deletions

View File

@ -521,6 +521,7 @@ struct BackendVtable {
int protocol;
int default_port;
unsigned flags;
};
static inline const char *backend_init(

1
raw.c
View File

@ -326,5 +326,6 @@ const struct BackendVtable raw_backend = {
NULL /* test_for_upstream */,
"raw", "Raw",
PROT_RAW,
0,
0
};

View File

@ -424,5 +424,6 @@ const struct BackendVtable rlogin_backend = {
NULL /* test_for_upstream */,
"rlogin", "Rlogin",
PROT_RLOGIN,
513
513,
0
};

3
ssh.c
View File

@ -1199,7 +1199,8 @@ const struct BackendVtable ssh_backend = {
ssh_test_for_upstream,
"ssh", "SSH",
PROT_SSH,
22
22,
0
};
const struct BackendVtable sshconn_backend = {

View File

@ -1066,5 +1066,6 @@ const struct BackendVtable telnet_backend = {
NULL /* test_for_upstream */,
"telnet", "Telnet",
PROT_TELNET,
23
23,
0
};

View File

@ -59,14 +59,14 @@ const struct BackendVtable null_backend = {
null_init, null_free, null_reconfig, null_send, null_sendbuffer, null_size,
null_special, null_get_specials, null_connected, null_exitcode, null_sendok,
null_ldisc, null_provide_ldisc, null_unthrottle,
null_cfg_info, NULL /* test_for_upstream */, "null", "null", -1, 0
null_cfg_info, NULL /* test_for_upstream */, "null", "null", -1, 0, 0
};
const struct BackendVtable loop_backend = {
loop_init, loop_free, null_reconfig, loop_send, null_sendbuffer, null_size,
null_special, null_get_specials, null_connected, null_exitcode, null_sendok,
null_ldisc, null_provide_ldisc, null_unthrottle,
null_cfg_info, NULL /* test_for_upstream */, "loop", "loop", -1, 0
null_cfg_info, NULL /* test_for_upstream */, "loop", "loop", -1, 0, 0
};
struct loop_state {