public class EthernetActivity extends AbstractReplaceableActivity
Ethernet
object, which should provide a vast amount
of metadata including the content buffer itself. If this activity is created before it has been processed by
subsequent protocol parsers, the content buffer should not be modified in any way, i.e. it should be treated as
read-only medium.
ENHANCEMENT: encapsulate all metadata fields and prohibit access to the content buffer itselfPROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANT
source
Constructor and Description |
---|
EthernetActivity(PcapActivity source,
org.krakenapps.pcap.decoder.ethernet.EthernetFrame frame)
Constructs a new ethernet activity, replaces the source pcap activity on which the event occurred.
|
Modifier and Type | Method and Description |
---|---|
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
org.krakenapps.pcap.decoder.ethernet.MacAddress |
getDestinationMacAddress() |
org.jnetpcap.protocol.lan.Ethernet |
getEthernet() |
int |
getEthernetType() |
org.jnetpcap.protocol.lan.Ethernet.EthernetType |
getEthernetTypeEnum() |
PcapActivity |
getPcapActivity() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
org.krakenapps.pcap.decoder.ethernet.MacAddress |
getSourceMacAddress() |
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 EthernetActivity(PcapActivity source, org.krakenapps.pcap.decoder.ethernet.EthernetFrame frame)
source
- the Pcap activity on which the event occurred. This activity will be excluded from the
output, unless AbstractActivity.setExcludedFromOutput(boolean)
is called with 'false'.frame
- the decoded Ethernet frame (by Kraken)public org.jnetpcap.protocol.lan.Ethernet getEthernet()
public org.krakenapps.pcap.decoder.ethernet.MacAddress getSourceMacAddress()
public org.krakenapps.pcap.decoder.ethernet.MacAddress getDestinationMacAddress()
public int getEthernetType()
getEthernetTypeEnum()
public org.jnetpcap.protocol.lan.Ethernet.EthernetType getEthernetTypeEnum()
getEthernetType()
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.