public final class VTNTcpMatch extends VTNLayer4PortMatch<TcpHeader>
VTNTcpMatch describes the condition for TCP header to match against
packets.
Note that this class is not synchronized.
| Constructor and Description |
|---|
VTNTcpMatch()
Construct a new instance that matches every TCP packet.
|
VTNTcpMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.TcpMatchFields tmatch)
Construct a new instance from the given
TcpMatchFields instance. |
VTNTcpMatch(VTNPortRange src,
VTNPortRange dst)
Construct a new instance.
|
VTNTcpMatch(VtnTcpMatchFields vtmatch)
Construct a new instance from the given
VtnTcpMatchFields
instance. |
| Modifier and Type | Method and Description |
|---|---|
FlowMatchType |
getDestinationMatchType()
Return a flow match type corresponding to the destination port.
|
Class<TcpHeader> |
getHeaderType()
Return a class which represents the packet header type.
|
short |
getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
Return an IP protocol number assigned to this protocol.
|
FlowMatchType |
getSourceMatchType()
Return a flow match type corresponding to the source port.
|
void |
setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
Configure the condition represented by this instance into the given
MD-SAL flow match builder.
|
VtnTcpMatch |
toVtnLayer4Match()
Return a
VtnTcpMatch instance which contains the condition
represented by this instance. |
equals, getDestinationPort, getSourcePort, hashCode, isEmpty, match, setConditionKey, verifycreate, createpublic VTNTcpMatch()
public VTNTcpMatch(VTNPortRange src, VTNPortRange dst)
src - A VTNPortRange instance which specifies the range
of the source port number. null matches every
source port number.dst - A VTNPortRange instance which specifies the range
of the destination port number. null matches every
destination port number.public VTNTcpMatch(VtnTcpMatchFields vtmatch) throws RpcException
VtnTcpMatchFields
instance.vtmatch - A VtnTcpMatchFields instance.NullPointerException - vtmatch is null.RpcException - vtmatch contains invalid value.public VTNTcpMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.TcpMatchFields tmatch)
throws RpcException
TcpMatchFields instance.tmatch - A TcpMatchFields instance.NullPointerException - tmatch is null.RpcException - tmatch contains invalid value.public short getInetProtocol(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
getInetProtocol in class VTNLayer4Matchver - An IpVersion instance which describes the
IP version.public VtnTcpMatch toVtnLayer4Match()
VtnTcpMatch instance which contains the condition
represented by this instance.toVtnLayer4Match in class VTNLayer4MatchVtnTcpMatch instance if this instance contains
the condition. null if this instance does not contain
any condition.public void setMatch(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.flow.MatchBuilder builder,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpVersion ver)
setMatch in class VTNLayer4Matchbuilder - A MatchBuilder instance.ver - An IpVersion instance which describes the
IP version.public Class<TcpHeader> getHeaderType()
getHeaderType in class VTNLayer4PortMatch<TcpHeader>TcpHeader.public FlowMatchType getSourceMatchType()
getSourceMatchType in class VTNLayer4PortMatch<TcpHeader>FlowMatchType.TCP_SRC.public FlowMatchType getDestinationMatchType()
getDestinationMatchType in class VTNLayer4PortMatch<TcpHeader>FlowMatchType.TCP_DST.Copyright © 2018 OpenDaylight. All rights reserved.