1 /* 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 17 package android.net; 18 19 /** 20 * Corresponds to C's {@code struct tcp_repair_window} from 21 * include/uapi/linux/tcp.h 22 * 23 * @hide 24 */ 25 public final class TcpRepairWindow { 26 public final int sndWl1; 27 public final int sndWnd; 28 public final int maxWindow; 29 public final int rcvWnd; 30 public final int rcvWup; 31 public final int rcvWndScale; 32 33 /** 34 * Constructs an instance with the given field values. 35 */ TcpRepairWindow(final int sndWl1, final int sndWnd, final int maxWindow, final int rcvWnd, final int rcvWup, final int rcvWndScale)36 public TcpRepairWindow(final int sndWl1, final int sndWnd, final int maxWindow, 37 final int rcvWnd, final int rcvWup, final int rcvWndScale) { 38 this.sndWl1 = sndWl1; 39 this.sndWnd = sndWnd; 40 this.maxWindow = maxWindow; 41 this.rcvWnd = rcvWnd; 42 this.rcvWup = rcvWup; 43 this.rcvWndScale = rcvWndScale; 44 } 45 } 46