Fill correct TOS/TTL value by fetching them from kernel with
getsockopt.
bug: 123967966
Test: -build, flash, boot
-atest FrameworksNetTests
Change-Id: I75b1be51040b4a381163958b4cddd27dbb22bac1
31 lines
860 B
Plaintext
31 lines
860 B
Plaintext
/*
|
|
* Copyright (C) 2019 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.net;
|
|
|
|
parcelable TcpKeepalivePacketDataParcelable {
|
|
byte[] srcAddress;
|
|
int srcPort;
|
|
byte[] dstAddress;
|
|
int dstPort;
|
|
int seq;
|
|
int ack;
|
|
int rcvWnd;
|
|
int rcvWndScale;
|
|
int tos;
|
|
int ttl;
|
|
}
|