public final class UdpPacket extends PortProtoPacket<UDP> implements UdpHeader
UdpPacket class implements a cache for a UDP instance.| Constructor and Description |
|---|
UdpPacket(UDP udp)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected VTNUdpMatch |
createMatch(VTNPortRange src,
VTNPortRange dst)
Construct UDP 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 VTNUdpMatch createMatch(VTNPortRange src, VTNPortRange dst)
createMatch in class PortProtoPacket<UDP>src - A VTNPortRange instance which specifies the
source port.dst - A VTNPortRange instance which specifies the
destination port.VTNUdpMatch instance.public FlowMatchType getSourceMatchType()
getSourceMatchType in class PortProtoPacket<UDP>FlowMatchType.UDP_SRC.public FlowMatchType getDestinationMatchType()
getDestinationMatchType in class PortProtoPacket<UDP>FlowMatchType.UDP_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.