diff options
-rw-r--r-- | include/libssh/packet.h | 2 | ||||
-rw-r--r-- | libssh/packet.c | 8 | ||||
-rw-r--r-- | libssh/packet1.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/libssh/packet.h b/include/libssh/packet.h index b03bb8ef..7a78f646 100644 --- a/include/libssh/packet.h +++ b/include/libssh/packet.h @@ -53,7 +53,7 @@ int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user #endif -int packet_translate(ssh_session session); +int ssh_packet_parse_type(ssh_session session); int packet_flush(ssh_session session, int enforce_blocking); diff --git a/libssh/packet.c b/libssh/packet.c index 743559e0..208b1700 100644 --- a/libssh/packet.c +++ b/libssh/packet.c @@ -258,7 +258,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user) session->recv_seq++; /* We don't want to rewrite a new packet while still executing the packet callbacks */ session->packet_state = PACKET_STATE_PROCESSING; - packet_translate(session); + ssh_packet_parse_type(session); /* execute callbacks */ ssh_packet_process(session, session->in_packet.type); session->packet_state = PACKET_STATE_INIT; @@ -361,7 +361,7 @@ error: /** @internal * @parse the "Type" header field of a packet and updates the session */ -int packet_translate(ssh_session session) { +int ssh_packet_parse_type(ssh_session session) { enter_function(); memset(&session->in_packet, 0, sizeof(PACKET)); @@ -404,7 +404,7 @@ int packet_flush(ssh_session session, int enforce_blocking) { * This function places the outgoing packet buffer into an outgoing * socket buffer */ -static int packet_write(ssh_session session) { +static int ssh_packet_write(ssh_session session) { int rc = SSH_ERROR; enter_function(); @@ -483,7 +483,7 @@ static int packet_send2(ssh_session session) { } } - rc = packet_write(session); + rc = ssh_packet_write(session); session->send_seq++; if (buffer_reinit(session->out_buffer) < 0) { diff --git a/libssh/packet1.c b/libssh/packet1.c index 49e4fdf2..ec4f99cb 100644 --- a/libssh/packet1.c +++ b/libssh/packet1.c @@ -216,7 +216,7 @@ int ssh_packet_socket_callback1(const void *data, size_t receivedlen, void *user session->recv_seq++; /* We don't want to rewrite a new packet while still executing the packet callbacks */ session->packet_state = PACKET_STATE_PROCESSING; - packet_translate(session); + ssh_packet_parse_type(session); /* execute callbacks */ ssh_packet_process(session, session->in_packet.type); session->packet_state = PACKET_STATE_INIT; |