blob: f062fa9034eae249b1a7b508b9ec1e671c3e32ba [file] [log] [blame]
Remi NGUYEN VANfbbccbc2021-01-15 18:08:24 +09001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.net;
18
19import android.annotation.SystemApi;
20
21/**
22 * Corresponds to C's {@code struct tcp_repair_window} from
23 * include/uapi/linux/tcp.h
24 *
25 * @hide
26 */
27@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
28public final class TcpRepairWindow {
29 public final int sndWl1;
30 public final int sndWnd;
31 public final int maxWindow;
32 public final int rcvWnd;
33 public final int rcvWup;
34 public final int rcvWndScale;
35
36 /**
37 * Constructs an instance with the given field values.
38 */
39 public TcpRepairWindow(final int sndWl1, final int sndWnd, final int maxWindow,
40 final int rcvWnd, final int rcvWup, final int rcvWndScale) {
41 this.sndWl1 = sndWl1;
42 this.sndWnd = sndWnd;
43 this.maxWindow = maxWindow;
44 this.rcvWnd = rcvWnd;
45 this.rcvWup = rcvWup;
46 this.rcvWndScale = rcvWndScale;
47 }
48}