> /*
> * Never offer a window over 32767 without using window scaling. Some
> * poor stacks do signed 16bit maths!
> */
> #define MAX_WINDOW 32767
>
> However, I couldn't figure out why it's set to 32767. For example, while
> I have a 64k recvbuf, the sender can fill at most half of the recvbuf.
>
> Can anyone tell me why we set this MAX_WINDOW to 1/2 of 64K ?
> , or does it assume we define SK_RMEM_MAX to 32767 ?
We keep the window to 32767 for the reason in the comments. If you
advertise > 32K windows some broken stacks treat it as signed and as a negative
window.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]