Searched refs:intAbs (Results 1 – 2 of 2) sorted by relevance
38 private static int intAbs(short v) { in intAbs() method in IpUtils62 sum += intAbs(shortBuf.get(i)); in checksum()86 partial += intAbs(buf.getShort(headerOffset + 12)); in pseudoChecksumIPv4()87 partial += intAbs(buf.getShort(headerOffset + 14)); in pseudoChecksumIPv4()88 partial += intAbs(buf.getShort(headerOffset + 16)); in pseudoChecksumIPv4()89 partial += intAbs(buf.getShort(headerOffset + 18)); in pseudoChecksumIPv4()97 partial += intAbs(buf.getShort(headerOffset + offset)); in pseudoChecksumIPv6()137 int transportLen = intAbs(buf.getShort(transportOffset + 4)); in udpChecksum()
597 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 2)); in fillInPacket()598 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 4)); in fillInPacket()599 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 6)); in fillInPacket()600 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 8)); in fillInPacket()621 private static int intAbs(short v) { in intAbs() method in DhcpPacket646 sum += intAbs(s); in checksum()666 return intAbs((short) negated); in checksum()