public final class Criteria extends Object
| Modifier and Type | Method and Description |
|---|---|
static Criterion |
dummy()
Creates a dummy criterion.
|
static ExtensionCriterion |
extension(ExtensionSelector extensionSelector,
DeviceId deviceId)
Creates an extension criterion for the specified extension selector.
|
static Criterion |
matchArpOp(int arpOp)
Creates a match on arp operation type field using the specified value.
|
static Criterion |
matchArpSha(org.onlab.packet.MacAddress mac)
Creates a match on MAC source field using the specified value.
|
static Criterion |
matchArpSpa(org.onlab.packet.Ip4Address ip)
Creates a match on IPv4 source field using the specified value.
|
static Criterion |
matchArpTha(org.onlab.packet.MacAddress mac)
Creates a match on MAC destination field using the specified value.
|
static Criterion |
matchArpTpa(org.onlab.packet.Ip4Address ip)
Creates a match on IPv4 destination field using the specified value.
|
static Criterion |
matchEthDst(org.onlab.packet.MacAddress mac)
Creates a match on ETH_DST field using the specified value.
|
static Criterion |
matchEthDstMasked(org.onlab.packet.MacAddress mac,
org.onlab.packet.MacAddress mask)
Creates a masked match on ETH_DST field using the specified value and mask.
|
static Criterion |
matchEthSrc(org.onlab.packet.MacAddress mac)
Creates a match on ETH_SRC field using the specified value.
|
static Criterion |
matchEthSrcMasked(org.onlab.packet.MacAddress mac,
org.onlab.packet.MacAddress mask)
Creates a masked match on ETH_SRC field using the specified value and mask.
|
static Criterion |
matchEthType(org.onlab.packet.EthType ethType)
Creates a match on ETH_TYPE field using the specified value.
|
static Criterion |
matchEthType(int ethType)
Creates a match on ETH_TYPE field using the specified value.
|
static Criterion |
matchIcmpCode(short icmpCode)
Creates a match on ICMP code field using the specified value.
|
static Criterion |
matchIcmpType(short icmpType)
Creates a match on ICMP type field using the specified value.
|
static Criterion |
matchIcmpv6Code(short icmpv6Code)
Creates a match on ICMPv6 code field using the specified value.
|
static Criterion |
matchIcmpv6Type(short icmpv6Type)
Creates a match on ICMPv6 type field using the specified value.
|
static Criterion |
matchInnerVlanId(org.onlab.packet.VlanId vlanId)
Creates a match on the inner VLAN ID field using the specified value.
|
static Criterion |
matchInnerVlanPcp(byte vlanPcp)
Creates a match on the inner VLAN PCP field using the specified value.
|
static Criterion |
matchInPhyPort(PortNumber port)
Creates a match on IN_PHY_PORT field using the specified value.
|
static Criterion |
matchInPort(PortNumber port)
Creates a match on IN_PORT field using the specified value.
|
static Criterion |
matchIPDscp(byte ipDscp)
Creates a match on IP DSCP field using the specified value.
|
static Criterion |
matchIPDst(org.onlab.packet.IpPrefix ip)
Creates a match on IPv4 destination field using the specified value.
|
static Criterion |
matchIPEcn(byte ipEcn)
Creates a match on IP ECN field using the specified value.
|
static Criterion |
matchIPProtocol(short proto)
Creates a match on IP proto field using the specified value.
|
static Criterion |
matchIPSrc(org.onlab.packet.IpPrefix ip)
Creates a match on IPv4 source field using the specified value.
|
static Criterion |
matchIPv6Dst(org.onlab.packet.IpPrefix ip)
Creates a match on IPv6 destination field using the specified value.
|
static Criterion |
matchIPv6ExthdrFlags(int exthdrFlags)
Creates a match on IPv6 Extension Header pseudo-field fiags.
|
static Criterion |
matchIPv6FlowLabel(int flowLabel)
Creates a match on IPv6 flow label field using the specified value.
|
static Criterion |
matchIPv6NDSourceLinkLayerAddress(org.onlab.packet.MacAddress mac)
Creates a match on IPv6 Neighbor Discovery source link-layer address
using the specified value.
|
static Criterion |
matchIPv6NDTargetAddress(org.onlab.packet.Ip6Address targetAddress)
Creates a match on IPv6 Neighbor Discovery target address using the
specified value.
|
static Criterion |
matchIPv6NDTargetLinkLayerAddress(org.onlab.packet.MacAddress mac)
Creates a match on IPv6 Neighbor Discovery target link-layer address
using the specified value.
|
static Criterion |
matchIPv6Src(org.onlab.packet.IpPrefix ip)
Creates a match on IPv6 source field using the specified value.
|
static Criterion |
matchLambda(Lambda lambda)
Creates a match on lambda using the specified value.
|
static Criterion |
matchMetadata(long metadata)
Creates a match on METADATA field using the specified value.
|
static Criterion |
matchMplsBos(boolean mplsBos)
Creates a match on MPLS Bottom-of-Stack indicator bit.
|
static Criterion |
matchMplsLabel(org.onlab.packet.MplsLabel mplsLabel)
Creates a match on MPLS label.
|
static Criterion |
matchMplsTc(byte mplsTc)
Creates a match on MPLS TC.
|
static Criterion |
matchOchSignalType(OchSignalType signalType)
Create a match on OCh (Optical Channel) signal type.
|
static Criterion |
matchOduSignalId(OduSignalId oduSignalId)
Creates a match on ODU (Optical channel Data Unit) signal ID using the specified value.
|
static Criterion |
matchOduSignalType(OduSignalType signalType)
Creates a match on ODU (Optical channel Data Unit) signal Type using the specified value.
|
static Criterion |
matchPbbIsid(int pbbIsid)
Creates a match on PBB I-SID field using the specific value.
|
static Criterion |
matchSctpDst(org.onlab.packet.TpPort sctpPort)
Creates a match on SCTP destination port field using the specified
value.
|
static Criterion |
matchSctpSrc(org.onlab.packet.TpPort sctpPort)
Creates a match on SCTP source port field using the specified value.
|
static Criterion |
matchTcpDst(org.onlab.packet.TpPort tcpPort)
Creates a match on TCP destination port field using the specified value.
|
static Criterion |
matchTcpFlags(int flags)
Creates a match on TCP flags using the specified value.
|
static Criterion |
matchTcpSrc(org.onlab.packet.TpPort tcpPort)
Creates a match on TCP source port field using the specified value.
|
static Criterion |
matchTunnelId(long tunnelId)
Creates a match on Tunnel ID.
|
static Criterion |
matchUdpDst(org.onlab.packet.TpPort udpPort)
Creates a match on UDP destination port field using the specified value.
|
static Criterion |
matchUdpSrc(org.onlab.packet.TpPort udpPort)
Creates a match on UDP 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 matchInPhyPort(PortNumber port)
port - inport valuepublic static Criterion matchMetadata(long metadata)
metadata - metadata value (64 bits data)public static Criterion matchEthDst(org.onlab.packet.MacAddress mac)
mac - MAC address value or wildcard maskpublic static Criterion matchEthDstMasked(org.onlab.packet.MacAddress mac, org.onlab.packet.MacAddress mask)
mac - MAC address valuemask - MAC address maskingpublic static Criterion matchEthSrc(org.onlab.packet.MacAddress mac)
mac - MAC address value or wildcard maskpublic static Criterion matchEthSrcMasked(org.onlab.packet.MacAddress mac, org.onlab.packet.MacAddress mask)
mac - MAC address valuemask - MAC address maskingpublic static Criterion matchEthType(int ethType)
ethType - eth type value (16 bits unsigned integer)public static Criterion matchEthType(org.onlab.packet.EthType ethType)
ethType - eth type valuepublic static Criterion matchVlanId(org.onlab.packet.VlanId vlanId)
vlanId - vlan id valuepublic static Criterion matchInnerVlanId(org.onlab.packet.VlanId vlanId)
vlanId - vlan id valuepublic static Criterion matchVlanPcp(byte vlanPcp)
vlanPcp - vlan pcp value (3 bits)public static Criterion matchInnerVlanPcp(byte vlanPcp)
vlanPcp - vlan pcp value (3 bits)public static Criterion matchIPDscp(byte ipDscp)
ipDscp - ip dscp value (6 bits)public static Criterion matchIPEcn(byte ipEcn)
ipEcn - ip ecn value (2 bits)public static Criterion matchIPProtocol(short proto)
proto - ip protocol value (8 bits unsigned integer)public static Criterion matchIPSrc(org.onlab.packet.IpPrefix ip)
ip - ipv4 source valuepublic static Criterion matchIPDst(org.onlab.packet.IpPrefix ip)
ip - ipv4 source valuepublic static Criterion matchTcpSrc(org.onlab.packet.TpPort tcpPort)
tcpPort - TCP source portpublic static Criterion matchTcpDst(org.onlab.packet.TpPort tcpPort)
tcpPort - TCP destination portpublic static Criterion matchTcpFlags(int flags)
flags - TCP flagspublic static Criterion matchUdpSrc(org.onlab.packet.TpPort udpPort)
udpPort - UDP source portpublic static Criterion matchUdpDst(org.onlab.packet.TpPort udpPort)
udpPort - UDP destination portpublic static Criterion matchSctpSrc(org.onlab.packet.TpPort sctpPort)
sctpPort - SCTP source portpublic static Criterion matchSctpDst(org.onlab.packet.TpPort sctpPort)
sctpPort - SCTP destination portpublic static Criterion matchIcmpType(short icmpType)
icmpType - ICMP type (8 bits unsigned integer)public static Criterion matchIcmpCode(short icmpCode)
icmpCode - ICMP code (8 bits unsigned integer)public static Criterion matchIPv6Src(org.onlab.packet.IpPrefix ip)
ip - ipv6 source valuepublic static Criterion matchIPv6Dst(org.onlab.packet.IpPrefix ip)
ip - ipv6 destination valuepublic static Criterion matchIPv6FlowLabel(int flowLabel)
flowLabel - IPv6 flow label (20 bits)public static Criterion matchIcmpv6Type(short icmpv6Type)
icmpv6Type - ICMPv6 type (8 bits unsigned integer)public static Criterion matchIcmpv6Code(short icmpv6Code)
icmpv6Code - ICMPv6 code (8 bits unsigned integer)public static Criterion matchIPv6NDTargetAddress(org.onlab.packet.Ip6Address targetAddress)
targetAddress - IPv6 Neighbor Discovery target addresspublic static Criterion matchIPv6NDSourceLinkLayerAddress(org.onlab.packet.MacAddress mac)
mac - IPv6 Neighbor Discovery source link-layer addresspublic static Criterion matchIPv6NDTargetLinkLayerAddress(org.onlab.packet.MacAddress mac)
mac - IPv6 Neighbor Discovery target link-layer addresspublic static Criterion matchMplsLabel(org.onlab.packet.MplsLabel mplsLabel)
mplsLabel - MPLS label (20 bits)public static Criterion matchMplsBos(boolean mplsBos)
mplsBos - boolean value indicating true (BOS=1) or false (BOS=0)public static Criterion matchMplsTc(byte mplsTc)
mplsTc - MPLS TC (3 bits)public static Criterion matchTunnelId(long tunnelId)
tunnelId - Tunnel ID (64 bits)public static Criterion matchIPv6ExthdrFlags(int exthdrFlags)
exthdrFlags - IPv6 Extension Header pseudo-field flags (16 bits)public static Criterion matchLambda(Lambda lambda)
lambda - lambdapublic static Criterion matchOchSignalType(OchSignalType signalType)
signalType - OCh signal typepublic static Criterion matchOduSignalId(OduSignalId oduSignalId)
oduSignalId - ODU Signal Idpublic static Criterion matchOduSignalType(OduSignalType signalType)
signalType - ODU Signal Typepublic static Criterion matchArpTpa(org.onlab.packet.Ip4Address ip)
ip - ipv4 destination valuepublic static Criterion matchArpSpa(org.onlab.packet.Ip4Address ip)
ip - ipv4 source valuepublic static Criterion matchArpTha(org.onlab.packet.MacAddress mac)
mac - MAC destination valuepublic static Criterion matchArpSha(org.onlab.packet.MacAddress mac)
mac - MAC source valuepublic static Criterion matchArpOp(int arpOp)
arpOp - arp operation type valuepublic static Criterion matchPbbIsid(int pbbIsid)
pbbIsid - PBB I-SIDpublic static ExtensionCriterion extension(ExtensionSelector extensionSelector, DeviceId deviceId)
extensionSelector - extension selectordeviceId - device IDpublic static Criterion dummy()