Lines Matching defs:checksum
377 // needed to seed the IP checksum.
389 buf.putShort((short) 0); // checksum
402 buf.putShort((short) 0); // UDP checksum -- initially zero
442 // fix UDP header: checksum
443 // checksum for UDP at udpChecksumOffset
447 // values from the IP header and accumulate checksum.
456 // and compute UDP checksum
457 buf.putShort(udpChecksumOffset, (short) checksum(buf, udpSeed,
462 // fixup IP-header checksum
464 (short) checksum(buf, 0, ipHeaderOffset, endIpHeader));
477 * Performs an IP checksum (used in IP header and across UDP
479 * allows the checksum to commence with a specified value.
481 private int checksum(ByteBuffer buf, int seed, int start, int end) {