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_INSTANT
source
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, setReplaced
addOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecord
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutput
public 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()
Activity
getSourceAddressAsString
in interface Activity
getSourceAddressAsString
in class AbstractActivity
public String getDestinationAddressAsString()
Activity
getDestinationAddressAsString
in interface Activity
getDestinationAddressAsString
in class AbstractActivity
public String toString()
toString
in class AbstractActivity
Copyright © 2013–2015 Institute of networks and security. All rights reserved.