net.sourceforge.jpcap.net
Interface LinkLayers

All Known Implementing Classes:
LinkLayer

public interface LinkLayers

Link-layer type codes.

Taken from libpcap/bpf/net/bpf.h

The link-layer type is used to determine what data-structure the IP protocol bits will be encapsulated inside of.

On a 10/100mbps network, packets are encapsulated inside of ethernet 14-byte ethernet headers which contain MAC addresses and an ethernet type field.

On ethernet over ppp network, the link-layer type is raw, and packets are not encapsulated in any ethernet header. NOTE: why isn't it type PPP instead?


Field Summary
static int ARCNET
          ARCNET
static int ATM_RFC1483
          LLC/SNAP encapsulated atm
static int AX25
          Amateur Radio AX.25
static int CHAOS
          Chaos
static int EN10MB
          Ethernet (10Mb)
static int EN3MB
          Experimental Ethernet (3Mb)
static int FDDI
          FDDI
static int IEEE802
          IEEE 802 Networks
static int NULL
          no link-layer encapsulation
static int PPP
          Point-to-point Protocol
static int PRONET
          Proteon ProNET Token Ring
static int RAW
          raw IP
static int SLIP
          Serial Line IP
static int UNKNOWN
          unknown link-layer type
 

Field Detail

NULL

public static final int NULL
no link-layer encapsulation

EN10MB

public static final int EN10MB
Ethernet (10Mb)

EN3MB

public static final int EN3MB
Experimental Ethernet (3Mb)

AX25

public static final int AX25
Amateur Radio AX.25

PRONET

public static final int PRONET
Proteon ProNET Token Ring

CHAOS

public static final int CHAOS
Chaos

IEEE802

public static final int IEEE802
IEEE 802 Networks

ARCNET

public static final int ARCNET
ARCNET

SLIP

public static final int SLIP
Serial Line IP

PPP

public static final int PPP
Point-to-point Protocol

FDDI

public static final int FDDI
FDDI

ATM_RFC1483

public static final int ATM_RFC1483
LLC/SNAP encapsulated atm

RAW

public static final int RAW
raw IP

UNKNOWN

public static final int UNKNOWN
unknown link-layer type