summaryrefslogtreecommitdiffstats
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-12 21:58:09 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-12 21:58:09 +0200
commite94bff02ba513628088fd112c5c7cbd9f9a4a57f (patch)
treea2de174f644a33579aed2f2ab89b3261ab9c6610 /libssh/packet.c
parent3671c610235a94a2a799650662cbef0234d0b7c2 (diff)
Respond to keepalives/global requests
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index 84c6466a..3e0575f7 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -693,6 +693,9 @@ void packet_parse(ssh_session session) {
case SSH2_MSG_CHANNEL_OPEN:
message_handle(session,type);
return;
+ case SSH2_MSG_GLOBAL_REQUEST:
+ ssh_global_request_handle(session);
+ return;
default:
ssh_log(session, SSH_LOG_RARE, "Received unhandled packet %d", type);
}
@@ -779,6 +782,7 @@ static int packet_wait2(ssh_session session, int type, int blocking) {
ssh_log(session, SSH_LOG_PACKET, "received disconnect packet");
leave_function();
return SSH_ERROR;
+ case SSH2_MSG_GLOBAL_REQUEST:
case SSH2_MSG_CHANNEL_WINDOW_ADJUST:
case SSH2_MSG_CHANNEL_DATA:
case SSH2_MSG_CHANNEL_EXTENDED_DATA: