|
|||||||||
| 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.network.Arp
@Header public class Arp
Address Resolution Protocol header. ARP is used to translate protocol addresses to hardware interface addresses.
| Nested Class Summary | |
|---|---|
static class |
Arp.HardwareType
Definitions for ARP supported hardware types. |
static class |
Arp.OpCode
Definitions for all the possible ARP operations as specified by the operation field. |
static class |
Arp.ProtocolType
Definitions for supported protocol types. |
| 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 |
|---|
| 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 | |
|---|---|
Arp()
|
|
| Method Summary | |
|---|---|
protected void |
decodeHeader()
Decode header. |
int |
hardwareType()
Hardware type. |
java.lang.String |
hardwareTypeDescription()
Hardware type description. |
Arp.HardwareType |
hardwareTypeEnum()
Hardware type enum. |
static int |
headerLength(JBuffer buffer,
int offset)
Header length. |
int |
hlen()
Hlen. |
int |
operation()
Operation. |
java.lang.String |
operationDescription()
Operation description. |
Arp.OpCode |
operationEnum()
Operation enum. |
int |
plen()
Plen. |
int |
protocolType()
Protocol type. |
java.lang.String |
protocolTypeDescription()
Protocol type description. |
Arp.ProtocolType |
protocolTypeEnum()
Protocol type enum. |
byte[] |
sha()
Sha. |
int |
shaLength()
Sha length. |
byte[] |
spa()
Spa. |
int |
spaLength()
Spa length. |
int |
spaOffset()
Spa offset. |
byte[] |
tha()
Tha. |
int |
thaLength()
Tha length. |
int |
thaOffset()
Tha offset. |
byte[] |
tpa()
Tpa. |
int |
tpaLength()
Tpa length. |
int |
tpaOffset()
Tpa offset. |
| 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 |
| Constructor Detail |
|---|
public Arp()
| Method Detail |
|---|
@HeaderLength
public static int headerLength(JBuffer buffer,
int offset)
buffer - the bufferoffset - the offset
@Dynamic(value=DESCRIPTION) public java.lang.String hardwareTypeDescription()
@Field(offset=0,
length=16)
public int hardwareType()
public Arp.HardwareType hardwareTypeEnum()
@Field(offset=16,
format="%x",
length=16)
public int protocolType()
@Dynamic(value=DESCRIPTION) public java.lang.String protocolTypeDescription()
public Arp.ProtocolType protocolTypeEnum()
@Field(offset=32,
length=8,
units="bytes",
display="hardware size")
public int hlen()
@Field(offset=40,
length=8,
units="bytes",
display="protocol size")
public int plen()
@Dynamic(value=DESCRIPTION) public java.lang.String operationDescription()
@Field(offset=48,
length=16,
display="op code")
public int operation()
public Arp.OpCode operationEnum()
@Field(offset=64,
format="#mac#",
display="sender MAC")
public byte[] sha()
@Dynamic(value=LENGTH) public int shaLength()
@Field(format="#ip4#",
display="sender IP")
public byte[] spa()
@Dynamic(value=OFFSET) public int spaOffset()
@Dynamic(value=LENGTH) public int spaLength()
@Field(format="#mac#",
display="target MAC")
public byte[] tha()
@Dynamic(value=OFFSET) public int thaOffset()
@Dynamic(value=LENGTH) public int thaLength()
@Field(format="#ip4#",
display="target IP")
public byte[] tpa()
@Dynamic(value=OFFSET) public int tpaOffset()
@Dynamic(value=LENGTH) public int tpaLength()
protected void decodeHeader()
decodeHeader in class JHeaderJHeader.decodeHeader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||