net.sourceforge.jpcap.net
Interface EthernetFields

All Known Implementing Classes:
EthernetPacket, EthernetProtocol, HeaderGenerator, PacketGenerator

public interface EthernetFields

Ethernet protocol field encoding information.


Field Summary
static int ETH_CODE_LEN
          Width of the ethernet type code in bytes.
static int ETH_CODE_POS
          Position of the ethernet type field within the ethernet header.
static int ETH_DST_POS
          Position of the destination MAC address within the ethernet header.
static int ETH_HEADER_LEN
          Total length of an ethernet header in bytes.
static int ETH_SRC_POS
          Position of the source MAC address within the ethernet header.
 

Field Detail

ETH_CODE_LEN

public static final int ETH_CODE_LEN
Width of the ethernet type code in bytes.

See Also:
Constant Field Values

ETH_DST_POS

public static final int ETH_DST_POS
Position of the destination MAC address within the ethernet header.

See Also:
Constant Field Values

ETH_SRC_POS

public static final int ETH_SRC_POS
Position of the source MAC address within the ethernet header.

See Also:
Constant Field Values

ETH_CODE_POS

public static final int ETH_CODE_POS
Position of the ethernet type field within the ethernet header.

See Also:
Constant Field Values

ETH_HEADER_LEN

public static final int ETH_HEADER_LEN
Total length of an ethernet header in bytes.

See Also:
Constant Field Values