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_INSTANT
source
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, 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 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()
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.