MOHAMED
MOHAMED

Reputation: 43588

Linux Command to set TCP window size

I want to send TCP packet with window size 65535 (0xffff). I m looking to set the TCP window size to 65535 on my linux system.

I know that there is the sysctl command but I could not find how tochange the tcp window.

How I can do that on my linux system?

Upvotes: 1

Views: 5801

Answers (2)

ac3d912
ac3d912

Reputation: 199

RHEL:

echo 65535 > /proc/sys/net/core/rmem_default

echo 65535 > /proc/sys/net/core/wmem_default

Reference

Upvotes: 1

user207421
user207421

Reputation: 311039

The maximum TCP window size for a socket equals the size of the socket receive buffer, which is set with setsockopt() and the SO_RCVBUFSIZ option.

Upvotes: 0

Related Questions