diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.150 2008/01/23 01:56:54 dtucker Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.151 2008/02/22 20:44:02 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -136,6 +136,8 @@ static int server_side = 0; | |||
136 | /* Set to true if we are authenticated. */ | 136 | /* Set to true if we are authenticated. */ |
137 | static int after_authentication = 0; | 137 | static int after_authentication = 0; |
138 | 138 | ||
139 | int keep_alive_timeouts = 0; | ||
140 | |||
139 | /* Session key information for Encryption and MAC */ | 141 | /* Session key information for Encryption and MAC */ |
140 | Newkeys *newkeys[MODE_MAX]; | 142 | Newkeys *newkeys[MODE_MAX]; |
141 | static struct packet_state { | 143 | static struct packet_state { |
@@ -1192,10 +1194,12 @@ packet_read_poll_seqnr(u_int32_t *seqnr_p) | |||
1192 | for (;;) { | 1194 | for (;;) { |
1193 | if (compat20) { | 1195 | if (compat20) { |
1194 | type = packet_read_poll2(seqnr_p); | 1196 | type = packet_read_poll2(seqnr_p); |
1197 | keep_alive_timeouts = 0; | ||
1195 | if (type) | 1198 | if (type) |
1196 | DBG(debug("received packet type %d", type)); | 1199 | DBG(debug("received packet type %d", type)); |
1197 | switch (type) { | 1200 | switch (type) { |
1198 | case SSH2_MSG_IGNORE: | 1201 | case SSH2_MSG_IGNORE: |
1202 | debug3("Received SSH2_MSG_IGNORE"); | ||
1199 | break; | 1203 | break; |
1200 | case SSH2_MSG_DEBUG: | 1204 | case SSH2_MSG_DEBUG: |
1201 | packet_get_char(); | 1205 | packet_get_char(); |