|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.jpcap.net.EthernetEncoding
Ethernet packet encoding.
Contains link-level information encoding information for an ethernet packet and methods for encoding and decoding ethernet headers.
| Fields inherited from interface net.sourceforge.jpcap.net.EthernetFields |
ETH_CODE_LEN, ETH_CODE_POS, ETH_DST_POS, ETH_HEADER_LEN, ETH_SRC_POS |
| Constructor Summary | |
EthernetEncoding()
|
|
| Method Summary | |
static int |
extractTypeCode(byte[] packetBytes)
Extract the type field from packet data. |
static byte[] |
generateRandomHeader()
Generate a random ethernet header. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EthernetEncoding()
| Method Detail |
public static byte[] generateRandomHeader()
public static int extractTypeCode(byte[] packetBytes)
packetBytes - packet bytes.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||