Searched refs:headerOffset (Results 1 – 1 of 1) sorted by relevance
83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv4() argument85 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() argument96 partial += intAbs(buf.getShort(headerOffset + offset)); in pseudoChecksumIPv6()101 private static byte ipversion(ByteBuffer buf, int headerOffset) { in ipversion() argument102 return (byte) ((buf.get(headerOffset) & (byte) 0xf0) >> 4); in ipversion()105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() argument[all …]