aboutsummaryrefslogtreecommitdiff
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-01-24 22:30:43 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-01-24 22:30:43 +0100
commit3465b592e717836709544e07e3a14c13c66e8444 (patch)
treecfaaf7d3f429b1fd4d60aee3257eae18e0cef665 /libssh/packet.c
parentca499a54956ca778835171688d0d79969aa74dd5 (diff)
downloadlibssh-3465b592e717836709544e07e3a14c13c66e8444.tar.gz
libssh-3465b592e717836709544e07e3a14c13c66e8444.tar.xz
libssh-3465b592e717836709544e07e3a14c13c66e8444.zip
Few function name changes
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c8
1 files changed, 4 insertions, 4 deletions
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) {