public interface L4Packet extends CachedPacket, Layer4Header
L4Packet defines interfaces that implements cache for layer 4
protocol header.| Modifier and Type | Method and Description |
|---|---|
L4Packet |
clone()
Return a deep copy of this instance.
|
VTNLayer4Match |
createMatch(Set<FlowMatchType> fields)
Construct match fields to test layer 4 protocol header in this packet.
|
boolean |
updateChecksum(Inet4Packet ipv4)
Calculate the checksum of the packet, and set the computed checksum
into a
Packet instance
configured in this instance. |
commit, getPacketsetDescriptionVTNLayer4Match createMatch(Set<FlowMatchType> fields) throws RpcException
Note that this method creates match fields that matches the original packet. Any modification to the packet is ignored.
fields - A set of FlowMatchType instances corresponding to
match fields to be tested.VTNLayer4Match instance.RpcException - This packet is broken.boolean updateChecksum(Inet4Packet ipv4) throws VTNException
Packet instance
configured in this instance.ipv4 - 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.L4Packet clone()
clone in interface CachedPacketCopyright © 2018 OpenDaylight. All rights reserved.