|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpcap.net.Packet
net.sourceforge.jpcap.net.EthernetPacket
net.sourceforge.jpcap.net.ARPPacket
An ARP protocol packet.
Extends an ethernet packet, adding ARP header information and an ARP data payload.
Field Summary |
Fields inherited from class net.sourceforge.jpcap.net.EthernetPacket |
_bytes, _ethOffset |
Fields inherited from interface net.sourceforge.jpcap.net.ARPFields |
ARP_ADDR_SIZE_LEN, ARP_ADDR_TYPE_LEN, ARP_ETH_ADDR_CODE, ARP_HEADER_LEN, ARP_HW_LEN_POS, ARP_HW_TYPE_POS, ARP_IP_ADDR_CODE, ARP_OP_LEN, ARP_OP_POS, ARP_OP_REP_CODE, ARP_OP_REQ_CODE, ARP_PR_LEN_POS, ARP_PR_TYPE_POS, ARP_S_HW_ADDR_POS, ARP_S_PR_ADDR_POS, ARP_T_HW_ADDR_POS, ARP_T_PR_ADDR_POS |
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 | |
ARPPacket(int lLen,
byte[] bytes)
Create a new ARP packet. |
Method Summary | |
byte[] |
getARPData()
Fetch data portion of the arp header. |
byte[] |
getARPHeader()
Fetch the arp header, excluding arp data payload. |
java.lang.String |
getColor()
Fetch ascii escape sequence of the color associated with this packet type. |
byte[] |
getData()
Fetch data portion of the arp header. |
java.lang.String |
getDestinationHwAddress()
Fetch the hardware destination address. |
java.lang.String |
getDestinationProtoAddress()
Fetch the proto sender address. |
byte[] |
getHeader()
Fetch the arp header, excluding arp data payload. |
int |
getOperation()
Fetch the operation code. |
java.lang.String |
getSourceHwAddress()
Fetch the hardware source address. |
java.lang.String |
getSourceProtoAddress()
Fetch the proto sender address. |
java.lang.String |
toColoredString(boolean colored)
Generate string with contents describing this ARP packet. |
java.lang.String |
toString()
Convert this ARP packet to a readable string. |
Methods inherited from class net.sourceforge.jpcap.net.EthernetPacket |
getEthernetData, getEthernetHeader, getEthernetHeaderLength, getEthernetProtocol, getHeaderLength, getProtocol |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ARPPacket(int lLen, byte[] bytes)
Method Detail |
public java.lang.String getSourceHwAddress()
getSourceHwAddress
in class EthernetPacket
public java.lang.String getDestinationHwAddress()
getDestinationHwAddress
in class EthernetPacket
public java.lang.String getSourceProtoAddress()
public java.lang.String getDestinationProtoAddress()
public int getOperation()
public byte[] getARPHeader()
public byte[] getARPData()
public byte[] getHeader()
getHeader
in class EthernetPacket
public byte[] getData()
getData
in class EthernetPacket
public java.lang.String toString()
toString
in class EthernetPacket
public java.lang.String toColoredString(boolean colored)
toColoredString
in class EthernetPacket
colored
- whether or not the string should contain ansi
color escape sequences.public java.lang.String getColor()
getColor
in class EthernetPacket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |