public class ArpActivity extends AbstractReplaceableActivity
ArpPacket including IP information if available.
This class also provides the JNetPcap specific Arp packet representation (if available)
Arp.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANTsource| Constructor and Description |
|---|
ArpActivity(PcapActivity source,
org.krakenapps.pcap.decoder.arp.ArpPacket p)
Default constructor for this class, the source pcap activity will be replaced.
|
| Modifier and Type | Method and Description |
|---|---|
org.jnetpcap.protocol.network.Arp |
getArp() |
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
int |
getHardwareAddressLength() |
int |
getHardwareType() |
int |
getOperation() |
PcapActivity |
getPcapActivity() |
int |
getProtocolAddressLength() |
int |
getProtocolType() |
org.krakenapps.pcap.decoder.ethernet.MacAddress |
getSenderHardwareAddress() |
InetAddress |
getSenderProtocolAddress() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
org.krakenapps.pcap.decoder.ethernet.MacAddress |
getTargetHardwareAddress() |
InetAddress |
getTargetProtocolAddress() |
String |
toString() |
isReplaced, replaceActivity, setReplacedaddOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecordgetSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutputpublic ArpActivity(PcapActivity source, org.krakenapps.pcap.decoder.arp.ArpPacket p)
source - on which the ArpActivity occurred or the final PcapActivity that led to the fully decoded packet.p - the parsed Arp-packetpublic PcapActivity getPcapActivity()
public int getHardwareType()
ArpPacket.getHardwareType()public int getProtocolType()
ArpPacket.getProtocolType()public int getHardwareAddressLength()
ArpPacket.getHardwareSize()public int getProtocolAddressLength()
ArpPacket.getProtocolSize()public int getOperation()
ArpPacket.getOpcode()public org.krakenapps.pcap.decoder.ethernet.MacAddress getSenderHardwareAddress()
ArpPacket.getSenderMac()public InetAddress getSenderProtocolAddress()
ArpPacket.getSenderIp()public org.krakenapps.pcap.decoder.ethernet.MacAddress getTargetHardwareAddress()
ArpPacket.getTargetMac()public InetAddress getTargetProtocolAddress()
ArpPacket.getTargetIp()public org.jnetpcap.protocol.network.Arp getArp()
public String getSourceAddressAsString()
ActivitygetSourceAddressAsString in interface ActivitygetSourceAddressAsString in class AbstractActivitypublic String getDestinationAddressAsString()
ActivitygetDestinationAddressAsString in interface ActivitygetDestinationAddressAsString in class AbstractActivitypublic String toString()
toString in class AbstractActivityCopyright © 2013–2015 Institute of networks and security. All rights reserved.