Subject: Re: libssh2 master 2f0c0ce SFTP: store request_id separately in packets

Re: libssh2 master 2f0c0ce SFTP: store request_id separately in packets

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 15 Dec 2010 08:59:59 +0100

libssh2_at_git.stuge.se wrote:
> +++ b/src/sftp.h
> @@ -64,6 +64,15 @@ struct sftp_pipeline_chunk {
> #define MIN(x,y) ((x)<(y)?(x):(y))
> #endif
>
> +struct _LIBSSH2_SFTP_PACKET
> +{
> + struct list_node node; /* linked list header */
> + int request_id;
> + unsigned char *data;
> + size_t data_len; /* payload size */
> +};

Remember to use data types that match the protocol on wire.
request_id is uint32, so must not be int here, or anywhere else in
our code.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-12-15