Home
last modified time | relevance | path

Searched refs:headerOffset (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/android/net/util/
DIpUtils.java83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv4() argument
85 partial += intAbs(buf.getShort(headerOffset + 12)); in pseudoChecksumIPv4()
86 partial += intAbs(buf.getShort(headerOffset + 14)); in pseudoChecksumIPv4()
87 partial += intAbs(buf.getShort(headerOffset + 16)); in pseudoChecksumIPv4()
88 partial += intAbs(buf.getShort(headerOffset + 18)); in pseudoChecksumIPv4()
93 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv6() argument
96 partial += intAbs(buf.getShort(headerOffset + offset)); in pseudoChecksumIPv6()
101 private static byte ipversion(ByteBuffer buf, int headerOffset) { in ipversion() argument
102 return (byte) ((buf.get(headerOffset) & (byte) 0xf0) >> 4); in ipversion()
105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() argument
[all …]