Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c0fef0b authored by Josh Hunt's avatar Josh Hunt Committed by David S. Miller
Browse files

net: Add getsockopt support for TCP thin-streams



Initial TCP thin-stream commit did not add getsockopt support for the new
socket options: TCP_THIN_LINEAR_TIMEOUTS and TCP_THIN_DUPACK. This adds support
for them.

Signed-off-by: default avatarJosh Hunt <johunt@akamai.com>
Tested-by: default avatarAndreas Petlund <apetlund@simula.no>
Acked-by: default avatarAndreas Petlund <apetlund@simula.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 99e6d065
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2601,6 +2601,12 @@ static int do_tcp_getsockopt(struct sock *sk, int level,
			return -EFAULT;
		return 0;
	}
	case TCP_THIN_LINEAR_TIMEOUTS:
		val = tp->thin_lto;
		break;
	case TCP_THIN_DUPACK:
		val = tp->thin_dupack;
		break;
	default:
		return -ENOPROTOOPT;
	}