summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-08-08 15:12:06 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-08-08 15:12:06 +0000
commit75ec4d6510aba8780effddb53eee4a0296015608 (patch)
treecdbb9481b94425022d83d4b00bd2ef6fcfc7dd4b /common-kex.c
parenta7649c250fccd3a901488dc5135c2eca4cc56ef1 (diff)
- Add -K keepalive flag for dropbear and dbclient
- Try to reduce the frequency of select() timeouts - Add a max receive window size of 1MB --HG-- extra : convert_revision : 9aa22036cb511cddb35fbc0e09ad05acb39b64d1
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/common-kex.c b/common-kex.c
index dd36cd1..e9c655d 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -188,8 +188,6 @@ void kexfirstinitialise() {
/* Reset the kex state, ready for a new negotiation */
static void kexinitialise() {
- struct timeval tv;
-
TRACE(("kexinitialise()"))
/* sent/recv'd MSG_KEXINIT */
@@ -206,10 +204,7 @@ static void kexinitialise() {
ses.kexstate.datatrans = 0;
ses.kexstate.datarecv = 0;
- if (gettimeofday(&tv, 0) < 0) {
- dropbear_exit("Error getting time");
- }
- ses.kexstate.lastkextime = tv.tv_sec;
+ ses.kexstate.lastkextime = time(NULL);
}