Reputation: 43588
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
Reputation: 199
RHEL:
echo 65535 > /proc/sys/net/core/rmem_default
echo 65535 > /proc/sys/net/core/wmem_default
Upvotes: 1
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