|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jpcap.Packet | +--jpcap.ARPPacket
This class represents ARP/RARP packet.
Field Summary | |
static short |
ARP_REPLY
ARP reply |
static short |
ARP_REQUEST
ARP request |
short |
hardtype
Hardware type |
static short |
HARDTYPE_ETHER
Hardware type: Ethernet |
static short |
HARDTYPE_FRAMERELAY
Hardware type: Frame relay |
static short |
HARDTYPE_IEEE802
Hardware type: Token ring |
short |
hlen
Hardware address length |
static short |
INV_REPLY
Identify peer response |
static short |
INV_REQUEST
Identify peer request |
short |
operation
Operation |
short |
plen
Protocol address length |
short |
prototype
Protocol type |
static short |
PROTOTYPE_IP
Protocol type: IP |
static short |
RARP_REPLY
Reverse ARP reply |
static short |
RARP_REQUEST
Reverse ARP request |
byte[] |
sender_hardaddr
Sender hardware address |
byte[] |
sender_protoaddr
Sender protocol address |
byte[] |
target_hardaddr
Target hardware address |
byte[] |
target_protoaddr
Target protocol address |
Fields inherited from class jpcap.Packet |
caplen, data, datalink, header, len, sec, usec |
Constructor Summary | |
ARPPacket()
|
Method Summary | |
java.lang.Object |
getSenderHardwareAddress()
Returns the hardware address (MAC address) of the sender. |
java.lang.Object |
getSenderProtocolAddress()
Returns the protocol address of the sender. |
java.lang.Object |
getTargetHardwareAddress()
Returns the hardware address (MAC address) of the target. |
java.lang.Object |
getTargetProtocolAddress()
Returns the protocol address of the target. |
java.lang.String |
toString()
Returns a string representation of this ARP/RARP packet. Format: ARP(hardtype:prototype) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public short hardtype
public static final short HARDTYPE_ETHER
public static final short HARDTYPE_IEEE802
public static final short HARDTYPE_FRAMERELAY
public short prototype
public static final short PROTOTYPE_IP
public short hlen
public short plen
public short operation
public static final short ARP_REQUEST
public static final short ARP_REPLY
public static final short RARP_REQUEST
public static final short RARP_REPLY
public static final short INV_REQUEST
public static final short INV_REPLY
public byte[] sender_hardaddr
public byte[] sender_protoaddr
public byte[] target_hardaddr
public byte[] target_protoaddr
Constructor Detail |
public ARPPacket()
Method Detail |
public java.lang.Object getSenderHardwareAddress()
public java.lang.Object getTargetHardwareAddress()
public java.lang.Object getSenderProtocolAddress()
public java.lang.Object getTargetProtocolAddress()
public java.lang.String toString()
toString
in class Packet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |