Searched refs:udpSumOffset (Results 1 – 1 of 1) sorted by relevance
148 final int udpSumOffset = IPV4_HEADER_LENGTH + UDP_CHECKSUM_OFFSET; in testIpv4UdpChecksum() local149 final int udpSum = getChecksum(packet, udpSumOffset); in testIpv4UdpChecksum()152 packet.put(udpSumOffset, (byte) 0); in testIpv4UdpChecksum()153 packet.put(udpSumOffset + 1, (byte) 0); in testIpv4UdpChecksum()158 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()