src/org/jnetpcap/packet/JHeaderScanner.java
public int scanAllBindings(final JPacket packet, final int offset) {
		for (final JBinding b : getBindings()) {
			if (b == null) {
				continue;
			}

			if (b.isBound(packet, offset)) {
				return b.getSourceId();
			}
		}

		return JProtocol.PAYLOAD_ID;
	}
/**
	 * Calculates the next header in sequence of headers within the packet buffer.
	 * 
	 * @param packet
	 *          the packet object this header is bound to
	 * @param offset
	 *          offset into the packet buffer in bytes of the start of this header
	 * @return numerical ID of the next header as assigned by JRegistry
	 */
Calculates the next header in sequence of headers within the packet buffer.

@param packet
the packet object this header is bound to
@param offset
offset into the packet buffer in bytes of the start of this header
@return numerical ID of the next header as assigned by JRegistry
Calculates the next header in sequence of headers within the packet buffer . @param packet the packet object this header is bound to @param offset offset into the packet buffer in bytes of the start of this header @return numerical ID of the next header as assigned by JRegistry
public int scanAllBindings(final JPacket packet, final int offset) {
		for (final JBinding b : getBindings()) {
			if (b == null) {
				continue;
			}
			if (b.isBound(packet, offset)) {
				return b.getSourceId();
			}
		}
		return JProtocol.PAYLOAD_ID;
	}
public int scanAllBindings ( final JPacket packet , final int offset ) { for ( final JBinding b : getBindings ( ) ) { if ( b == null ) { continue ; } if ( b . isBound ( packet , offset ) ) { return b . getSourceId ( ) ; } } return JProtocol . PAYLOAD_ID ; }
Calculates the next header in sequence of headers within the packet buffer.
Calculates the next header in sequence of headers within the packet buffer .