public abstract class IpActivity extends AbstractReplaceableActivity
Ipv4Activity
and Ipv6Activity. Several common attributes
are available through instances of this class, in particular:
PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANTsource| Constructor and Description |
|---|
IpActivity(PcapActivity source,
org.krakenapps.pcap.decoder.ip.Ipv4Packet ipv4Packet)
IPv4 constructor to be called by subclasses.
|
IpActivity(PcapActivity source,
org.krakenapps.pcap.decoder.ipv6.Ipv6Packet ipv6Packet)
IPv6 constructor to be called by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getDestinationAddress() |
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
PcapActivity |
getPcapActivity() |
int |
getProtocol() |
InetAddress |
getSourceAddress() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
int |
getVersion() |
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 IpActivity(PcapActivity source, org.krakenapps.pcap.decoder.ip.Ipv4Packet ipv4Packet)
source - the source event on which the IPv4 packet was foundipv4Packet - the decoded IPv4 packet (Kraken)public IpActivity(PcapActivity source, org.krakenapps.pcap.decoder.ipv6.Ipv6Packet ipv6Packet)
source - the source event on which the IPv6 packet was foundipv6Packet - the decoded IPv6 packet (Kraken)public int getVersion()
public int getProtocol()
public InetAddress getSourceAddress()
public InetAddress getDestinationAddress()
public PcapActivity getPcapActivity()
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.