public final class TcpPacket extends PortProtoPacket<TCP> implements TcpHeader
TcpPacket class implements a cache for a TCP instance.| Constructor and Description |
|---|
TcpPacket(TCP tcp)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected VTNTcpMatch |
createMatch(VTNPortRange src,
VTNPortRange dst)
Construct TCP flow match fields.
|
FlowMatchType |
getDestinationMatchType()
Return a flow match type corresponding to the destination port.
|
FlowMatchType |
getSourceMatchType()
Return a flow match type corresponding to the source port.
|
boolean |
updateChecksum(Inet4Packet ipv4)
Calculate the checksum of the packet, and set the computed checksum
into a
Packet instance
configured in this instance. |
clone, commit, computeChecksum, createMatch, getDestinationPort, getPacket, getPacketForWrite, getSourcePort, setDescription, setDestinationPort, setSourcePort, verifyChecksumequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestinationPort, getSourcePort, setDestinationPort, setSourcePortsetDescriptionprotected VTNTcpMatch createMatch(VTNPortRange src, VTNPortRange dst)
createMatch in class PortProtoPacket<TCP>src - A VTNPortRange instance which specifies the
source port.dst - A VTNPortRange instance which specifies the
destination port.VTNTcpMatch instance.public FlowMatchType getSourceMatchType()
getSourceMatchType in class PortProtoPacket<TCP>FlowMatchType.TCP_SRC.public FlowMatchType getDestinationMatchType()
getDestinationMatchType in class PortProtoPacket<TCP>FlowMatchType.TCP_DST.public boolean updateChecksum(Inet4Packet ipv4) throws VTNException
Packet instance
configured in this instance.updateChecksum in interface L4Packetipv4 - An Inet4Packet instance that contains this
packet.true is returned if the checksum field was updated.
false is returned if the packet was not modified.VTNException - An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.