version 1.149, 2007/12/28 15:32:24 |
version 1.150, 2008/01/23 01:56:54 |
|
|
* packet_process_incoming. If so, reads the packet; otherwise returns |
* packet_process_incoming. If so, reads the packet; otherwise returns |
* SSH_MSG_NONE. This does not wait for data from the connection. |
* SSH_MSG_NONE. This does not wait for data from the connection. |
* |
* |
* SSH_MSG_DISCONNECT is handled specially here. Also, SSH_MSG_IGNORE |
* SSH_MSG_DISCONNECT is handled specially here. Also, |
* messages are skipped by this function and are never returned |
* SSH_MSG_IGNORE messages are skipped by this function and are never returned |
* to higher levels, although SSH2_MSG_IGNORE are since they are needed |
* to higher levels. |
* for keepalives. |
|
*/ |
*/ |
|
|
static int |
static int |
|
|
if (type) |
if (type) |
DBG(debug("received packet type %d", type)); |
DBG(debug("received packet type %d", type)); |
switch (type) { |
switch (type) { |
|
case SSH2_MSG_IGNORE: |
|
break; |
case SSH2_MSG_DEBUG: |
case SSH2_MSG_DEBUG: |
packet_get_char(); |
packet_get_char(); |
msg = packet_get_string(NULL); |
msg = packet_get_string(NULL); |
|
|
seqnr = packet_get_int(); |
seqnr = packet_get_int(); |
debug("Received SSH2_MSG_UNIMPLEMENTED for %u", |
debug("Received SSH2_MSG_UNIMPLEMENTED for %u", |
seqnr); |
seqnr); |
/* FALLTHROUGH */ |
break; |
default: |
default: |
return type; |
return type; |
} |
} |