public final class Criteria
extends java.lang.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(MacAddress mac)
Creates a match on MAC source field using the specified value.
|
static Criterion |
matchArpSpa(Ip4Address ip)
Creates a match on IPv4 source field using the specified value.
|
static Criterion |
matchArpTha(MacAddress mac)
Creates a match on MAC destination field using the specified value.
|
static Criterion |
matchArpTpa(Ip4Address ip)
Creates a match on IPv4 destination field using the specified value.
|
static Criterion |
matchEthDst(MacAddress mac)
Creates a match on ETH_DST field using the specified value.
|
static Criterion |
matchEthDstMasked(MacAddress mac,
MacAddress mask)
Creates a masked match on ETH_DST field using the specified value and mask.
|
static Criterion |
matchEthSrc(MacAddress mac)
Creates a match on ETH_SRC field using the specified value.
|
static Criterion |
matchEthSrcMasked(MacAddress mac,
MacAddress mask)
Creates a masked match on ETH_SRC field using the specified value and mask.
|
static Criterion |
matchEthType(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(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(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(IpPrefix ip)
Creates a match on IPv4 source field using the specified value.
|
static Criterion |
matchIPv6Dst(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(MacAddress mac)
Creates a match on IPv6 Neighbor Discovery source link-layer address
using the specified value.
|
static Criterion |
matchIPv6NDTargetAddress(Ip6Address targetAddress)
Creates a match on IPv6 Neighbor Discovery target address using the
specified value.
|
static Criterion |
matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
Creates a match on IPv6 Neighbor Discovery target link-layer address
using the specified value.
|
static Criterion |
matchIPv6Src(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(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(TpPort sctpPort)
Creates a match on SCTP destination port field using the specified
value.
|
static Criterion |
matchSctpDstMasked(TpPort sctpPort,
TpPort mask)
Creates a masked match on SCTP destination port field using the specified value and mask.
|
static Criterion |
matchSctpSrc(TpPort sctpPort)
Creates a match on SCTP source port field using the specified value.
|
static Criterion |
matchSctpSrcMasked(TpPort sctpPort,
TpPort mask)
Creates a masked match on SCTP source port field using the specified value and mask.
|
static Criterion |
matchTcpDst(TpPort tcpPort)
Creates a match on TCP destination port field using the specified value.
|
static Criterion |
matchTcpDstMasked(TpPort tcpPort,
TpPort mask)
Creates a masked match on TCP destination port field using the specified value and mask.
|
static Criterion |
matchTcpFlags(int flags)
Creates a match on TCP flags using the specified value.
|
static Criterion |
matchTcpSrc(TpPort tcpPort)
Creates a match on TCP source port field using the specified value.
|
static Criterion |
matchTcpSrcMasked(TpPort tcpPort,
TpPort mask)
Creates a masked match on TCP source port field using the specified value and mask.
|
static Criterion |
matchTunnelId(long tunnelId)
Creates a match on Tunnel ID.
|
static Criterion |
matchUdpDst(TpPort udpPort)
Creates a match on UDP destination port field using the specified value.
|
static Criterion |
matchUdpDstMasked(TpPort udpPort,
TpPort mask)
Creates a masked match on UDP destination port field using the specified value and mask.
|
static Criterion |
matchUdpSrc(TpPort udpPort)
Creates a match on UDP source port field using the specified value.
|
static Criterion |
matchUdpSrcMasked(TpPort udpPort,
TpPort mask)
Creates a masked match on UDP source port field using the specified value and mask.
|
static Criterion |
matchVlanId(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(MacAddress mac)
mac
- MAC address value or wildcard maskpublic static Criterion matchEthDstMasked(MacAddress mac, MacAddress mask)
mac
- MAC address valuemask
- MAC address maskingpublic static Criterion matchEthSrc(MacAddress mac)
mac
- MAC address value or wildcard maskpublic static Criterion matchEthSrcMasked(MacAddress mac, 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(EthType ethType)
ethType
- eth type valuepublic static Criterion matchVlanId(VlanId vlanId)
vlanId
- vlan id valuepublic static Criterion matchInnerVlanId(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(IpPrefix ip)
ip
- ipv4 source valuepublic static Criterion matchIPDst(IpPrefix ip)
ip
- ipv4 source valuepublic static Criterion matchTcpSrc(TpPort tcpPort)
tcpPort
- TCP source portpublic static Criterion matchTcpSrcMasked(TpPort tcpPort, TpPort mask)
tcpPort
- TCP source portmask
- TCP source port maskingpublic static Criterion matchTcpDst(TpPort tcpPort)
tcpPort
- TCP destination portpublic static Criterion matchTcpDstMasked(TpPort tcpPort, TpPort mask)
tcpPort
- TCP destination portmask
- TCP destination port maskingpublic static Criterion matchTcpFlags(int flags)
flags
- TCP flagspublic static Criterion matchUdpSrc(TpPort udpPort)
udpPort
- UDP source portpublic static Criterion matchUdpSrcMasked(TpPort udpPort, TpPort mask)
udpPort
- UDP source portmask
- UDP source port maskingpublic static Criterion matchUdpDst(TpPort udpPort)
udpPort
- UDP destination portpublic static Criterion matchUdpDstMasked(TpPort udpPort, TpPort mask)
udpPort
- UDP destination portmask
- UDP destination port maskingpublic static Criterion matchSctpSrc(TpPort sctpPort)
sctpPort
- SCTP source portpublic static Criterion matchSctpSrcMasked(TpPort sctpPort, TpPort mask)
sctpPort
- SCTP source portmask
- SCTP source port maskingpublic static Criterion matchSctpDst(TpPort sctpPort)
sctpPort
- SCTP destination portpublic static Criterion matchSctpDstMasked(TpPort sctpPort, TpPort mask)
sctpPort
- SCTP destination portmask
- SCTP destination port maskingpublic 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(IpPrefix ip)
ip
- ipv6 source valuepublic static Criterion matchIPv6Dst(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(Ip6Address targetAddress)
targetAddress
- IPv6 Neighbor Discovery target addresspublic static Criterion matchIPv6NDSourceLinkLayerAddress(MacAddress mac)
mac
- IPv6 Neighbor Discovery source link-layer addresspublic static Criterion matchIPv6NDTargetLinkLayerAddress(MacAddress mac)
mac
- IPv6 Neighbor Discovery target link-layer addresspublic static Criterion matchMplsLabel(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(Ip4Address ip)
ip
- ipv4 destination valuepublic static Criterion matchArpSpa(Ip4Address ip)
ip
- ipv4 source valuepublic static Criterion matchArpTha(MacAddress mac)
mac
- MAC destination valuepublic static Criterion matchArpSha(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()