OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:transportLen
(Results
1 - 2
of
2
) sorted by null
/frameworks/base/services/net/java/android/net/util/
IpUtils.java
83
ByteBuffer buf, int headerOffset, int protocol, int
transportLen
) {
84
int partial = protocol +
transportLen
;
93
ByteBuffer buf, int headerOffset, int protocol, int
transportLen
) {
94
int partial = protocol +
transportLen
;
111
int ipOffset, int transportOffset, int
transportLen
) {
112
if (
transportLen
< 0) {
113
throw new IllegalArgumentException("Transport length < 0: " +
transportLen
);
118
sum = pseudoChecksumIPv4(buf, ipOffset, protocol,
transportLen
);
120
sum = pseudoChecksumIPv6(buf, ipOffset, protocol,
transportLen
);
125
sum = checksum(buf, sum, transportOffset, transportOffset +
transportLen
);
[
all
...]
/frameworks/base/services/tests/servicestests/src/android/net/
IpUtilsTest.java
99
int
transportLen
= packet.limit() - IPV6_HEADER_LENGTH;
100
assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH,
transportLen
));
109
assertChecksumEquals(sum, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH,
transportLen
));
114
IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH,
transportLen
));
115
assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH,
transportLen
));
Completed in 147 milliseconds