Change SSH_LOG_RARE to SSH_LOG_PACKET in packet.c
Этот коммит содержится в:
родитель
d9a50f04e7
Коммит
1137f0d48c
@ -168,7 +168,7 @@ static int packet_read2(SSH_SESSION *session) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_RARE,
|
ssh_log(session, SSH_LOG_PACKET,
|
||||||
"%hhd bytes padding, %d bytes left in buffer",
|
"%hhd bytes padding, %d bytes left in buffer",
|
||||||
padding, buffer_get_rest_len(session->in_buffer));
|
padding, buffer_get_rest_len(session->in_buffer));
|
||||||
|
|
||||||
@ -186,12 +186,12 @@ static int packet_read2(SSH_SESSION *session) {
|
|||||||
}
|
}
|
||||||
buffer_pass_bytes_end(session->in_buffer, padding);
|
buffer_pass_bytes_end(session->in_buffer, padding);
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_RARE,
|
ssh_log(session, SSH_LOG_PACKET,
|
||||||
"After padding, %d bytes left in buffer",
|
"After padding, %d bytes left in buffer",
|
||||||
buffer_get_rest_len(session->in_buffer));
|
buffer_get_rest_len(session->in_buffer));
|
||||||
#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
|
#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
|
||||||
if (session->current_crypto && session->current_crypto->do_compress_in) {
|
if (session->current_crypto && session->current_crypto->do_compress_in) {
|
||||||
ssh_log(session, SSH_LOG_RARE, "Decompressing in_buffer ...");
|
ssh_log(session, SSH_LOG_PACKET, "Decompressing in_buffer ...");
|
||||||
if (decompress_buffer(session, session->in_buffer) < 0) {
|
if (decompress_buffer(session, session->in_buffer) < 0) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -383,7 +383,7 @@ int packet_translate(SSH_SESSION *session) {
|
|||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_RARE, "Final size %d",
|
ssh_log(session, SSH_LOG_PACKET, "Final size %d",
|
||||||
buffer_get_rest_len(session->in_buffer));
|
buffer_get_rest_len(session->in_buffer));
|
||||||
|
|
||||||
if(buffer_get_u8(session->in_buffer, &session->in_packet.type) == 0) {
|
if(buffer_get_u8(session->in_buffer, &session->in_packet.type) == 0) {
|
||||||
@ -392,7 +392,7 @@ int packet_translate(SSH_SESSION *session) {
|
|||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_RARE, "Type %hhd", session->in_packet.type);
|
ssh_log(session, SSH_LOG_PACKET, "Type %hhd", session->in_packet.type);
|
||||||
session->in_packet.valid = 1;
|
session->in_packet.valid = 1;
|
||||||
|
|
||||||
leave_function();
|
leave_function();
|
||||||
@ -444,12 +444,12 @@ static int packet_send2(SSH_SESSION *session) {
|
|||||||
|
|
||||||
enter_function();
|
enter_function();
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_RARE,
|
ssh_log(session, SSH_LOG_PACKET,
|
||||||
"Writing on the wire a packet having %u bytes before", currentlen);
|
"Writing on the wire a packet having %u bytes before", currentlen);
|
||||||
|
|
||||||
#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
|
#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
|
||||||
if (session->current_crypto && session->current_crypto->do_compress_out) {
|
if (session->current_crypto && session->current_crypto->do_compress_out) {
|
||||||
ssh_log(session, SSH_LOG_RARE, "Compressing in_buffer ...");
|
ssh_log(session, SSH_LOG_PACKET, "Compressing in_buffer ...");
|
||||||
if (compress_buffer(session,session->out_buffer) < 0) {
|
if (compress_buffer(session,session->out_buffer) < 0) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@ -468,7 +468,7 @@ static int packet_send2(SSH_SESSION *session) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
finallen = htonl(currentlen + padding + 1);
|
finallen = htonl(currentlen + padding + 1);
|
||||||
ssh_log(session, SSH_LOG_RARE,
|
ssh_log(session, SSH_LOG_PACKET,
|
||||||
"%d bytes after comp + %d padding bytes = %lu bytes packet",
|
"%d bytes after comp + %d padding bytes = %lu bytes packet",
|
||||||
currentlen, padding, (long unsigned int) ntohl(finallen));
|
currentlen, padding, (long unsigned int) ntohl(finallen));
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user