Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Expose tcp_sock.snd_cwnd through getsockopt() #4

Open
wants to merge 1 commit into
base: fastly310-stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2919,6 +2919,10 @@ static int do_tcp_getsockopt(struct sock *sk, int level,
if (copy_to_user(optval, &fst, len))
return -EFAULT;
return 0;
case TCP_CWND:
case TCP_CWND2:
val = tp->snd_cwnd;
break;
}
default:
return -ENOPROTOOPT;
Expand Down