net.sourceforge.jpcap.net
Interface TCPFields

All Known Implementing Classes:
HeaderGenerator, TCPPacket

public interface TCPFields

IP protocol field encoding information.


Field Summary
static int TCP_ACK_LEN
          Length of the acknowledgment number in bytes.
static int TCP_ACK_MASK
           
static int TCP_ACK_POS
          Position of the acknowledgment number field.
static int TCP_CSUM_LEN
          Length of the checksum field in bytes.
static int TCP_CSUM_POS
          Position of the checksum field.
static int TCP_DP_POS
          Position of the destination port field.
static int TCP_FIN_MASK
           
static int TCP_FLAG_LEN
          Length of the header length and flags field in bytes.
static int TCP_FLAG_POS
          Position of the header length and flags field.
static int TCP_HEADER_LEN
          Length in bytes of a TCP header.
static int TCP_PORT_LEN
          Length of a TCP port in bytes.
static int TCP_PSH_MASK
           
static int TCP_RST_MASK
           
static int TCP_SEQ_LEN
          Length of the sequence number in bytes.
static int TCP_SEQ_POS
          Position of the sequence number field.
static int TCP_SP_POS
          Position of the source port field.
static int TCP_SYN_MASK
           
static int TCP_URG_LEN
          Length of the urgent field in bytes.
static int TCP_URG_MASK
           
static int TCP_URG_POS
          Position of the urgent pointer field.
static int TCP_WIN_LEN
          Length of the window size field in bytes.
static int TCP_WIN_POS
          Position of the window size field.
 

Field Detail

TCP_URG_MASK

public static final int TCP_URG_MASK
See Also:
Constant Field Values

TCP_ACK_MASK

public static final int TCP_ACK_MASK
See Also:
Constant Field Values

TCP_PSH_MASK

public static final int TCP_PSH_MASK
See Also:
Constant Field Values

TCP_RST_MASK

public static final int TCP_RST_MASK
See Also:
Constant Field Values

TCP_SYN_MASK

public static final int TCP_SYN_MASK
See Also:
Constant Field Values

TCP_FIN_MASK

public static final int TCP_FIN_MASK
See Also:
Constant Field Values

TCP_PORT_LEN

public static final int TCP_PORT_LEN
Length of a TCP port in bytes.

See Also:
Constant Field Values

TCP_SEQ_LEN

public static final int TCP_SEQ_LEN
Length of the sequence number in bytes.

See Also:
Constant Field Values

TCP_ACK_LEN

public static final int TCP_ACK_LEN
Length of the acknowledgment number in bytes.

See Also:
Constant Field Values

TCP_FLAG_LEN

public static final int TCP_FLAG_LEN
Length of the header length and flags field in bytes.

See Also:
Constant Field Values

TCP_WIN_LEN

public static final int TCP_WIN_LEN
Length of the window size field in bytes.

See Also:
Constant Field Values

TCP_CSUM_LEN

public static final int TCP_CSUM_LEN
Length of the checksum field in bytes.

See Also:
Constant Field Values

TCP_URG_LEN

public static final int TCP_URG_LEN
Length of the urgent field in bytes.

See Also:
Constant Field Values

TCP_SP_POS

public static final int TCP_SP_POS
Position of the source port field.

See Also:
Constant Field Values

TCP_DP_POS

public static final int TCP_DP_POS
Position of the destination port field.

See Also:
Constant Field Values

TCP_SEQ_POS

public static final int TCP_SEQ_POS
Position of the sequence number field.

See Also:
Constant Field Values

TCP_ACK_POS

public static final int TCP_ACK_POS
Position of the acknowledgment number field.

See Also:
Constant Field Values

TCP_FLAG_POS

public static final int TCP_FLAG_POS
Position of the header length and flags field.

See Also:
Constant Field Values

TCP_WIN_POS

public static final int TCP_WIN_POS
Position of the window size field.

See Also:
Constant Field Values

TCP_CSUM_POS

public static final int TCP_CSUM_POS
Position of the checksum field.

See Also:
Constant Field Values

TCP_URG_POS

public static final int TCP_URG_POS
Position of the urgent pointer field.

See Also:
Constant Field Values

TCP_HEADER_LEN

public static final int TCP_HEADER_LEN
Length in bytes of a TCP header.

See Also:
Constant Field Values