Re: Window size in SSH-2



James H. Newman <NewJames@xxxxxxxxxxx> wrote:
Another question about the standard. When dealing with the window
size, the data size to take into account is that of the whole
SSH_MSG_CHANNEL_DATA packet (including padding and HMAC) or only that of
the payload in this packet?

It's the length of the data _string_ in the SSH_MSG_CHANNEL_DATA
packet payload. That is, an SSH_MSG_CHANNEL_DATA which contains a
string with a length field of 00 00 00 01 and a one-byte data field
of 41 consumes one byte of window space.

RFC 4254, section 5.2, is a bit ambiguous in this respect.

I think they thought it would be obvious given what the window is for.
--
Simon Tatham "What a caterpillar calls the end of the
<anakin@xxxxxxxxx> world, a human calls a butterfly."
.