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 and pcap/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, the link-layer type is raw, and packets are not encapsulated in any ethernet header.


Field Summary
static int ARCNET
          ARCNET
static int ATM_CLIP
          IP over ATM.
static int ATM_RFC1483
          LLC/SNAP encapsulated atm
static int AX25
          Amateur Radio AX.25
static int CHAOS
          Chaos
static int CHDLC
          Cisco HDLC.
static int EN10MB
          Ethernet (10Mb)
static int EN3MB
          Experimental Ethernet (3Mb)
static int FDDI
          FDDI
static int IEEE802
          IEEE 802 Networks
static int IEEE802_11
          IEEE 802.11 wireless.
static int LINUX_SLL
          Linux cooked sockets.
static int LOOP
          OpenBSD loopback.
static int NULL
          no link-layer encapsulation
static int PPP
          Point-to-point Protocol
static int PPP_BSDOS
          BSD PPP.
static int PPP_SERIAL
          PPP over HDLC.
static int PRONET
          Proteon ProNET Token Ring
static int RAW
          raw IP
static int SLIP
          Serial Line IP
static int SLIP_BSDOS
          BSD Slip.
static int UNKNOWN
          unknown link-layer type
 

Field Detail

NULL

public static final int NULL
no link-layer encapsulation

See Also:
Constant Field Values

EN10MB

public static final int EN10MB
Ethernet (10Mb)

See Also:
Constant Field Values

EN3MB

public static final int EN3MB
Experimental Ethernet (3Mb)

See Also:
Constant Field Values

AX25

public static final int AX25
Amateur Radio AX.25

See Also:
Constant Field Values

PRONET

public static final int PRONET
Proteon ProNET Token Ring

See Also:
Constant Field Values

CHAOS

public static final int CHAOS
Chaos

See Also:
Constant Field Values

IEEE802

public static final int IEEE802
IEEE 802 Networks

See Also:
Constant Field Values

ARCNET

public static final int ARCNET
ARCNET

See Also:
Constant Field Values

SLIP

public static final int SLIP
Serial Line IP

See Also:
Constant Field Values

PPP

public static final int PPP
Point-to-point Protocol

See Also:
Constant Field Values

FDDI

public static final int FDDI
FDDI

See Also:
Constant Field Values

ATM_RFC1483

public static final int ATM_RFC1483
LLC/SNAP encapsulated atm

See Also:
Constant Field Values

RAW

public static final int RAW
raw IP

See Also:
Constant Field Values

SLIP_BSDOS

public static final int SLIP_BSDOS
BSD Slip.

See Also:
Constant Field Values

PPP_BSDOS

public static final int PPP_BSDOS
BSD PPP.

See Also:
Constant Field Values

ATM_CLIP

public static final int ATM_CLIP
IP over ATM.

See Also:
Constant Field Values

PPP_SERIAL

public static final int PPP_SERIAL
PPP over HDLC.

See Also:
Constant Field Values

CHDLC

public static final int CHDLC
Cisco HDLC.

See Also:
Constant Field Values

IEEE802_11

public static final int IEEE802_11
IEEE 802.11 wireless.

See Also:
Constant Field Values

LOOP

public static final int LOOP
OpenBSD loopback.

See Also:
Constant Field Values

LINUX_SLL

public static final int LINUX_SLL
Linux cooked sockets.

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
unknown link-layer type

See Also:
Constant Field Values