diff options
author | Damien Miller <djm@mindrot.org> | 2003-12-17 16:31:10 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-12-17 16:31:10 +1100 |
commit | 12c150e7e0711e29ea5dc78d3c9ed46221319dc5 (patch) | |
tree | 71ac83ddc9424e406a2363c4985fdf67005d909e /sshconnect.c | |
parent | 9836cf8d717455f1bba2dfbf2e41f074fc6bac48 (diff) |
- markus@cvs.openbsd.org 2003/12/09 21:53:37
[readconf.c readconf.h scp.1 servconf.c servconf.h sftp.1 ssh.1]
[ssh_config.5 sshconnect.c sshd.c sshd_config.5]
rename keepalive to tcpkeepalive; the old name causes too much
confusion; ok djm, dtucker; with help from jmc@
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sshconnect.c b/sshconnect.c index 3d6cc375a..80b45c79e 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: sshconnect.c,v 1.154 2003/11/21 11:57:03 djm Exp $"); | 16 | RCSID("$OpenBSD: sshconnect.c,v 1.155 2003/12/09 21:53:37 markus Exp $"); |
17 | 17 | ||
18 | #include <openssl/bn.h> | 18 | #include <openssl/bn.h> |
19 | 19 | ||
@@ -415,8 +415,8 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr, | |||
415 | 415 | ||
416 | debug("Connection established."); | 416 | debug("Connection established."); |
417 | 417 | ||
418 | /* Set keepalives if requested. */ | 418 | /* Set SO_KEEPALIVE if requested. */ |
419 | if (options.keepalives && | 419 | if (options.tcp_keep_alive && |
420 | setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, | 420 | setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&on, |
421 | sizeof(on)) < 0) | 421 | sizeof(on)) < 0) |
422 | error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno)); | 422 | error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno)); |