summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-03-07 18:33:30 +1100
committerDamien Miller <djm@mindrot.org>2008-03-07 18:33:30 +1100
commit58226f60680753c55766f2ba637c9bced175c65a (patch)
treeccb1d64ef2adaba717a08a8616289e8a566f6c15 /packet.c
parent7cb2b56b1c7e5d0824edc507b01cd78a01019590 (diff)
- dtucker@cvs.openbsd.org 2008/02/22 20:44:02
[clientloop.c packet.c packet.h serverloop.c] Allow all SSH2 packet types, including UNIMPLEMENTED to reset the keepalive timer (bz #1307). ok markus@
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index 92997288d..6afe24b9f 100644
--- a/packet.c
+++ b/packet.c
@@ -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. */
137static int after_authentication = 0; 137static int after_authentication = 0;
138 138
139int keep_alive_timeouts = 0;
140
139/* Session key information for Encryption and MAC */ 141/* Session key information for Encryption and MAC */
140Newkeys *newkeys[MODE_MAX]; 142Newkeys *newkeys[MODE_MAX];
141static struct packet_state { 143static 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();