public final class Criteria extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Criteria.EthCriterion
Implementation of MAC address criterion.
|
static class |
Criteria.EthTypeCriterion
Implementation of Ethernet type criterion.
|
static class |
Criteria.IPCriterion
Implementation of IP address criterion.
|
static class |
Criteria.IPProtocolCriterion
Implementation of Internet Protocol Number criterion.
|
static class |
Criteria.LambdaCriterion
Implementation of lambda (wavelength) criterion.
|
static class |
Criteria.MplsCriterion
Implementation of MPLS tag criterion.
|
static class |
Criteria.OpticalSignalTypeCriterion
Implementation of optical signal type criterion.
|
static class |
Criteria.PortCriterion
Implementation of input port criterion.
|
static class |
Criteria.TcpPortCriterion
Implementation of TCP port criterion.
|
static class |
Criteria.VlanIdCriterion
Implementation of VLAN ID criterion.
|
static class |
Criteria.VlanPcpCriterion
Implementation of VLAN priority criterion.
|
| Modifier and Type | Method and Description |
|---|---|
static Criterion |
matchEthDst(org.onlab.packet.MacAddress mac)
Creates a match on ETH_DST field using the specified value.
|
static Criterion |
matchEthSrc(org.onlab.packet.MacAddress mac)
Creates a match on ETH_SRC field using the specified value.
|
static Criterion |
matchEthType(Short ethType)
Creates a match on ETH_TYPE field using the specified value.
|
static Criterion |
matchInPort(PortNumber port)
Creates a match on IN_PORT field using the specified value.
|
static Criterion |
matchIPDst(org.onlab.packet.IpPrefix ip)
Creates a match on IP destination field using the specified value.
|
static Criterion |
matchIPProtocol(Byte proto)
Creates a match on IP proto field using the specified value.
|
static Criterion |
matchIPSrc(org.onlab.packet.IpPrefix ip)
Creates a match on IP source field using the specified value.
|
static Criterion |
matchLambda(Short lambda)
Creates a match on lambda field using the specified value.
|
static Criterion |
matchMplsLabel(Integer mplsLabel)
Creates a match on MPLS label.
|
static Criterion |
matchOpticalSignalType(Short sigType)
Creates a match on optical signal type using the specified value.
|
static Criterion |
matchTcpDst(Short tcpPort)
Creates a match on TCP destination port field using the specified value.
|
static Criterion |
matchTcpSrc(Short tcpPort)
Creates a match on TCP source port field using the specified value.
|
static Criterion |
matchVlanId(org.onlab.packet.VlanId vlanId)
Creates a match on VLAN ID field using the specified value.
|
static Criterion |
matchVlanPcp(Byte vlanPcp)
Creates a match on VLAN PCP field using the specified value.
|
public static Criterion matchInPort(PortNumber port)
port - inport valuepublic static Criterion matchEthSrc(org.onlab.packet.MacAddress mac)
mac - MAC address value or wildcard maskpublic static Criterion matchEthDst(org.onlab.packet.MacAddress mac)
mac - MAC address value or wildcard maskpublic static Criterion matchEthType(Short ethType)
ethType - eth type valuepublic static Criterion matchVlanId(org.onlab.packet.VlanId vlanId)
vlanId - vlan id valuepublic static Criterion matchVlanPcp(Byte vlanPcp)
vlanPcp - vlan pcp valuepublic static Criterion matchIPProtocol(Byte proto)
proto - ip protocol valuepublic static Criterion matchIPSrc(org.onlab.packet.IpPrefix ip)
ip - ip source valuepublic static Criterion matchIPDst(org.onlab.packet.IpPrefix ip)
ip - ip source valuepublic static Criterion matchTcpSrc(Short tcpPort)
tcpPort - TCP source portpublic static Criterion matchTcpDst(Short tcpPort)
tcpPort - TCP destination portpublic static Criterion matchMplsLabel(Integer mplsLabel)
mplsLabel - MPLS labelpublic static Criterion matchLambda(Short lambda)
lambda - lambda to match onCopyright © 2015. All rights reserved.