|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public static final int NULL
public static final int EN10MB
public static final int EN3MB
public static final int AX25
public static final int PRONET
public static final int CHAOS
public static final int IEEE802
public static final int ARCNET
public static final int SLIP
public static final int PPP
public static final int FDDI
public static final int ATM_RFC1483
public static final int RAW
public static final int UNKNOWN
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |