src/org/jnetpcap/protocol/tcpip/Udp.java
public boolean isChecksumValid() {

		if (isFragmented()) {
			return true;
		}

		if (getIndex() == -1) {
			throw new IllegalStateException("Oops index not set");
		}

		final int ipOffset = getPreviousHeaderOffset();

		return Checksum.pseudoUdp(this.packet, ipOffset, getOffset()) == 0;
	}
/**
	 * Checks if the checksum is valid, for un-fragmented packets. If a packet is
	 * fragmented, the checksum is not verified as data to is incomplete, but the
	 * method returns true none the less.
	 * 
	 * @return true if checksum checks out or if this is a fragment, otherwise if
	 *         the computed checksum does not match the stored checksum false is
	 *         returned
	 */
Checks if the checksum is valid, for un-fragmented packets. If a packet is
fragmented, the checksum is not verified as data to is incomplete, but the
method returns true none the less.

@return true if checksum checks out or if this is a fragment, otherwise if
the computed checksum does not match the stored checksum false is
returned
Checks if the checksum is valid for un - fragmented packets . If a packet is fragmented the checksum is not verified as data to is incomplete but the method returns true none the less . @return true if checksum checks out or if this is a fragment otherwise if the computed checksum does not match the stored checksum false is returned
public boolean isChecksumValid() {
		if (isFragmented()) {
			return true;
		}
		if (getIndex() == -1) {
			throw new IllegalStateException("Oops index not set");
		}
		final int ipOffset = getPreviousHeaderOffset();
		return Checksum.pseudoUdp(this.packet, ipOffset, getOffset()) == 0;
	}
public boolean isChecksumValid ( ) { if ( isFragmented ( ) ) { return true ; } if ( getIndex ( ) == - 1 ) { throw new IllegalStateException ( "Oops index not set" ) ; } final int ipOffset = getPreviousHeaderOffset ( ) ; return Checksum . pseudoUdp ( this . packet , ipOffset , getOffset ( ) ) == 0 ; }
Checks if the checksum is valid, for un-fragmented packets.
Checks if the checksum is valid for un - fragmented packets .