|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.protocol.lan.IEEE802dot3
@Header(length=14,
dlt=IEEE802)
public class IEEE802dot3IEEE 802.3 data link header definition
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader |
|---|
JHeader.State |
| Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory |
|---|
JMemory.Type |
| Field Summary | |
|---|---|
static int |
ID
The Constant ID. |
| Fields inherited from class org.jnetpcap.packet.JHeader |
|---|
annotatedHeader, BYTE, EMPTY_HEADER_ARRAY, isSubHeader, packet, state |
| Fields inherited from class org.jnetpcap.nio.JMemory |
|---|
JNETPCAP_LIBRARY_NAME, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
IEEE802dot3()
|
|
| Method Summary | |
|---|---|
long |
calculateChecksum()
Calculates a checksum using protocol specification for a header. |
long |
checksum()
Retrieves the header's checksum. |
boolean |
checksumCheck()
Checks if FCS is available for this Ethernet frame. |
java.lang.String |
checksumDescription()
Checksum description. |
int |
checksumOffset()
Calculates the offset of the FCS field within the Ethernet frame. |
byte[] |
destination()
Destination. |
void |
destination(byte[] array)
Destination. |
byte[] |
destinationToByteArray(byte[] array)
Destination to byte array. |
int |
length()
Length. |
void |
length(int len)
Length. |
byte[] |
source()
Source. |
void |
source(byte[] array)
Source. |
byte[] |
sourceToByteArray(byte[] array)
Source to byte array. |
| Methods inherited from class org.jnetpcap.nio.JBuffer |
|---|
findUTF8String, getByte, getByteArray, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setShort0, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ID
| Constructor Detail |
|---|
public IEEE802dot3()
| Method Detail |
|---|
@Field(offset=0,
length=48,
format="#mac#")
public byte[] destination()
public byte[] destinationToByteArray(byte[] array)
array - the array
public void destination(byte[] array)
array - the array
@Field(offset=48,
length=48,
format="#mac#")
public byte[] source()
public void source(byte[] array)
array - the arraypublic byte[] sourceToByteArray(byte[] array)
array - the array
@Field(offset=96,
length=16,
format="%d")
public int length()
public void length(int len)
len - the len
@Dynamic(field="checksum",
value=CHECK)
public boolean checksumCheck()
@Dynamic(value=OFFSET) public int checksumOffset()
@Dynamic(value=DESCRIPTION) public java.lang.String checksumDescription()
@Field(length=32,
format="%x",
display="FCS")
public long checksum()
public long calculateChecksum()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||