| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2014 Ericsson |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Vincent Perot - Initial API and implementation |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.internal.pcap.core.protocol.tcp; |
| 14 | |
| 15 | /** |
| 16 | * Interface that lists constants related to TCP. |
| 17 | * |
| 18 | * See http://en.wikipedia.org/wiki/Transmission_Control_Protocol#TCP_segment_structure. |
| 19 | * |
| 20 | * @author Vincent Perot |
| 21 | */ |
| 22 | public interface TCPValues { |
| 23 | |
| 24 | /** Size in bytes of a default TCP packet header */ |
| 25 | int DEFAULT_HEADER_LENGTH = 5; |
| 26 | |
| 27 | /** Size in bytes of a block of data. Used to convert data block to bytes. */ |
| 28 | int BLOCK_SIZE = 4; |
| 29 | |
| 30 | } |