net.sourceforge.jpcap.net
Interface IPFields

All Known Implementing Classes:
HeaderGenerator, IPPacket, PacketGenerator

public interface IPFields

IP protocol field encoding information.


Field Summary
static int IP_CODE_LEN
          Width of the IP protocol code in bytes.
static int IP_CODE_POS
          Position of the IP protocol code within the IP header.
static int IP_CSUM_LEN
          Width of the IP checksum in bytes.
static int IP_CSUM_POS
          Position of the checksum within the IP header.
static int IP_DST_POS
          Position of the destination IP address within a packet.
static int IP_FRAG_LEN
          Width of the fragmentation bits and offset field in bytes.
static int IP_FRAG_POS
          Position of the flag bits and fragment offset within the IP header.
static int IP_HEADER_LEN
          Length in bytes of an IP header, excluding options.
static int IP_ID_LEN
          Width of the ID field in bytes.
static int IP_ID_POS
          Position of the packet ID within the IP header.
static int IP_LEN_LEN
          Width of the header length field in bytes.
static int IP_LEN_POS
          Position of the length within the IP header.
static int IP_SRC_POS
          Position of the source IP address within the IP header.
static int IP_TOS_LEN
          Width of the TOS field in bytes.
static int IP_TOS_POS
          Position of the type of service code within the IP header.
static int IP_TTL_LEN
          Width of the TTL field in bytes.
static int IP_TTL_POS
          Position of the ttl within the IP header.
static int IP_VER_LEN
          Width of the IP version and header length field in bytes.
static int IP_VER_POS
          Position of the version code and header length within the IP header.
 

Field Detail

IP_VER_LEN

public static final int IP_VER_LEN
Width of the IP version and header length field in bytes.

See Also:
Constant Field Values

IP_TOS_LEN

public static final int IP_TOS_LEN
Width of the TOS field in bytes.

See Also:
Constant Field Values

IP_LEN_LEN

public static final int IP_LEN_LEN
Width of the header length field in bytes.

See Also:
Constant Field Values

IP_ID_LEN

public static final int IP_ID_LEN
Width of the ID field in bytes.

See Also:
Constant Field Values

IP_FRAG_LEN

public static final int IP_FRAG_LEN
Width of the fragmentation bits and offset field in bytes.

See Also:
Constant Field Values

IP_TTL_LEN

public static final int IP_TTL_LEN
Width of the TTL field in bytes.

See Also:
Constant Field Values

IP_CODE_LEN

public static final int IP_CODE_LEN
Width of the IP protocol code in bytes.

See Also:
Constant Field Values

IP_CSUM_LEN

public static final int IP_CSUM_LEN
Width of the IP checksum in bytes.

See Also:
Constant Field Values

IP_VER_POS

public static final int IP_VER_POS
Position of the version code and header length within the IP header.

See Also:
Constant Field Values

IP_TOS_POS

public static final int IP_TOS_POS
Position of the type of service code within the IP header.

See Also:
Constant Field Values

IP_LEN_POS

public static final int IP_LEN_POS
Position of the length within the IP header.

See Also:
Constant Field Values

IP_ID_POS

public static final int IP_ID_POS
Position of the packet ID within the IP header.

See Also:
Constant Field Values

IP_FRAG_POS

public static final int IP_FRAG_POS
Position of the flag bits and fragment offset within the IP header.

See Also:
Constant Field Values

IP_TTL_POS

public static final int IP_TTL_POS
Position of the ttl within the IP header.

See Also:
Constant Field Values

IP_CODE_POS

public static final int IP_CODE_POS
Position of the IP protocol code within the IP header.

See Also:
Constant Field Values

IP_CSUM_POS

public static final int IP_CSUM_POS
Position of the checksum within the IP header.

See Also:
Constant Field Values

IP_SRC_POS

public static final int IP_SRC_POS
Position of the source IP address within the IP header.

See Also:
Constant Field Values

IP_DST_POS

public static final int IP_DST_POS
Position of the destination IP address within a packet.

See Also:
Constant Field Values

IP_HEADER_LEN

public static final int IP_HEADER_LEN
Length in bytes of an IP header, excluding options.

See Also:
Constant Field Values