|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--jpcap.Packet
|
+--jpcap.ARPPacket
This class represents an ARP/RARP packet.
| Field Summary | |
static short |
ARP_REPLY
Operation: ARP reply |
static short |
ARP_REQUEST
Operation: 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
Operation: Reverse ARP reply |
static short |
RARP_REQUEST
Operation: 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,
sec,
usec |
| Constructor Summary | |
ARPPacket()
|
|
| Method Summary | |
java.lang.Object |
getSenderHardwareAddress()
Return sender MAC address in String |
java.lang.Object |
getSenderProtocolAddress()
Return sender protocol address (usually in jpcap.IPAddress) |
java.lang.Object |
getTargetHardwareAddress()
Return target MAC address in String |
java.lang.Object |
getTargetProtocolAddress()
Return target protocol address (usually in jpcap.IPAddress) |
java.lang.String |
toString()
Convert this object to String ARP(hardtype:prototype) |
| Methods inherited from class java.lang.Object |
equals,
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()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||