src/org/jnetpcap/protocol/tcpip/Tcp.java
@HeaderLength
	public static int headerLength(final JBuffer buffer, final int offset) {
		final int hlen = (buffer.getUByte(offset + 12) & 0xF0) >> 4;
		return hlen * 4;
	}
/**
	 * Calculates the length of a tcp header.
	 * 
	 * @param buffer
	 *          buffer containing packet and/or tcp header data
	 * @param offset
	 *          offset into the buffer where tcp header start (in bytes)
	 * @return number of bytes occupied by the tcp header, including any tcp
	 *         options
	 */
Calculates the length of a tcp header.

@param buffer
buffer containing packet and/or tcp header data
@param offset
offset into the buffer where tcp header start (in bytes)
@return number of bytes occupied by the tcp header, including any tcp
options
Calculates the length of a tcp header . @param buffer buffer containing packet and / or tcp header data @param offset offset into the buffer where tcp header start ( in bytes ) @return number of bytes occupied by the tcp header including any tcp options
@HeaderLength
	public static int headerLength(final JBuffer buffer, final int offset) {
		final int hlen = (buffer.getUByte(offset + 12) & 0xF0) >> 4;
		return hlen * 4;
	}
@ HeaderLength public static int headerLength ( final JBuffer buffer , final int offset ) { final int hlen = ( buffer . getUByte ( offset + 12 ) & 0xF0 ) >> 4 ; return hlen * 4 ; }
Calculates the length of a tcp header.
Calculates the length of a tcp header .