|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jpcap.net.LinkLayer
Information about network link layers.
Field Summary |
Fields inherited from interface net.sourceforge.jpcap.net.LinkLayers |
ARCNET, ATM_CLIP, ATM_RFC1483, AX25, CHAOS, CHDLC, EN10MB, EN3MB, FDDI, IEEE802, IEEE802_11, LINUX_SLL, LOOP, NULL, PPP, PPP_BSDOS, PPP_SERIAL, PRONET, RAW, SLIP, SLIP_BSDOS, UNKNOWN |
Constructor Summary | |
LinkLayer()
|
Method Summary | |
static java.lang.String |
getDescription(int code)
Fetch a link-layer type description. |
static int |
getLinkLayerLength(int layerType)
Fetch the header length associated with various link-layer types. |
static int |
getProtoOffset(int layerType)
Fetch the offset into the link-layer header where the protocol code can be found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinkLayer()
Method Detail |
public static int getLinkLayerLength(int layerType)
layerType
- the link-layer code
public static int getProtoOffset(int layerType)
layerType
- the link-layer code
public static java.lang.String getDescription(int code)
code
- the code associated with the description.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |