-/*\r
- * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.openflowjava.protocol.api.util;\r
-\r
-/**\r
- * Stores oxm_match constants\r
- * @author michal.polkorab\r
- *\r
- */\r
-public abstract class OxmMatchConstants {\r
-\r
- /** Backward compatibility with NXM */\r
- public static final int NXM_0_CLASS = 0x0000;\r
- /** Backward compatibility with NXM */\r
- public static final int NXM_1_CLASS = 0x0001;\r
- /** Basic class for OpenFlow */\r
- public static final int OPENFLOW_BASIC_CLASS = 0x8000;\r
- /** Experimenter class */\r
- public static final int EXPERIMENTER_CLASS = 0xFFFF;\r
-\r
- /** Switch input port */\r
- public static final int IN_PORT = 0;\r
- /** Switch physical input port */\r
- public static final int IN_PHY_PORT = 1;\r
- /** Metadata passed between tables */\r
- public static final int METADATA = 2;\r
- /** Ethernet destination address */\r
- public static final int ETH_DST = 3;\r
- /** Ethernet source address */\r
- public static final int ETH_SRC = 4;\r
- /** Ethernet frame type */\r
- public static final int ETH_TYPE = 5;\r
- /** VLAN id. */\r
- public static final int VLAN_VID = 6;\r
- /** VLAN priority. */\r
- public static final int VLAN_PCP = 7;\r
- /** IP DSCP (6 bits in ToS field). */\r
- public static final int IP_DSCP = 8;\r
- /** IP ECN (2 bits in ToS field). */\r
- public static final int IP_ECN = 9;\r
- /** IP protocol. */\r
- public static final int IP_PROTO = 10;\r
- /** IPv4 source address. */\r
- public static final int IPV4_SRC = 11;\r
- /** IPv4 destination address. */\r
- public static final int IPV4_DST = 12;\r
- /** TCP source port. */\r
- public static final int TCP_SRC = 13;\r
- /** TCP destination port. */\r
- public static final int TCP_DST = 14;\r
- /** UDP source port. */\r
- public static final int UDP_SRC = 15;\r
- /** UDP destination port. */\r
- public static final int UDP_DST = 16;\r
- /** SCTP source port. */\r
- public static final int SCTP_SRC = 17;\r
- /** SCTP destination port. */\r
- public static final int SCTP_DST = 18;\r
- /** ICMP type. */\r
- public static final int ICMPV4_TYPE = 19;\r
- /** ICMP code. */\r
- public static final int ICMPV4_CODE = 20;\r
- /** ARP opcode. */\r
- public static final int ARP_OP = 21;\r
- /** ARP source IPv4 address. */\r
- public static final int ARP_SPA = 22;\r
- /** ARP target IPv4 address. */\r
- public static final int ARP_TPA = 23;\r
- /** ARP source hardware address. */\r
- public static final int ARP_SHA = 24;\r
- /** ARP target hardware address. */\r
- public static final int ARP_THA = 25;\r
- /** IPv6 source address. */\r
- public static final int IPV6_SRC = 26;\r
- /** IPv6 destination address. */\r
- public static final int IPV6_DST = 27;\r
- /** IPv6 Flow Label */\r
- public static final int IPV6_FLABEL = 28;\r
- /** ICMPv6 type. */\r
- public static final int ICMPV6_TYPE = 29;\r
- /** ICMPv6 code. */\r
- public static final int ICMPV6_CODE = 30;\r
- /** Target address for ND. */\r
- public static final int IPV6_ND_TARGET = 31;\r
- /** Source link-layer for ND. */\r
- public static final int IPV6_ND_SLL = 32;\r
- /** Target link-layer for ND. */\r
- public static final int IPV6_ND_TLL = 33;\r
- /** MPLS label. */\r
- public static final int MPLS_LABEL = 34;\r
- /** MPLS TC. */\r
- public static final int MPLS_TC = 35;\r
- /** MPLS BoS bit. */\r
- public static final int MPLS_BOS = 36;\r
- /** PBB I-SID. */\r
- public static final int PBB_ISID = 37;\r
- /** Logical Port Metadata. */\r
- public static final int TUNNEL_ID = 38;\r
- /** IPv6 Extension Header pseudo-field */\r
- public static final int IPV6_EXTHDR = 39;\r
-\r
- /**\r
- * OFPXMC_NXM_1 class Constants\r
- */\r
-\r
- /** NXM IPv4 Tunnel Endpoint Source */\r
- public static final int NXM_NX_TUN_IPV4_SRC = 31;\r
- /** NXM IPv4 Tunnel Endpoint Destination */\r
- public static final int NXM_NX_TUN_IPV4_DST = 32;\r
- /** NXM TCP_Flag value */\r
- public static final int NXM_NX_TCP_FLAG = 34;\r
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.openflowjava.protocol.api.util;
+
+/**
+ * Stores oxm_match constants
+ * @author michal.polkorab
+ *
+ */
+public abstract class OxmMatchConstants {
+
+ /** Backward compatibility with NXM */
+ public static final int NXM_0_CLASS = 0x0000;
+ /** Backward compatibility with NXM */
+ public static final int NXM_1_CLASS = 0x0001;
+ /** Basic class for OpenFlow */
+ public static final int OPENFLOW_BASIC_CLASS = 0x8000;
+ /** Experimenter class */
+ public static final int EXPERIMENTER_CLASS = 0xFFFF;
+
+ /** Switch input port */
+ public static final int IN_PORT = 0;
+ /** Switch physical input port */
+ public static final int IN_PHY_PORT = 1;
+ /** Metadata passed between tables */
+ public static final int METADATA = 2;
+ /** Ethernet destination address */
+ public static final int ETH_DST = 3;
+ /** Ethernet source address */
+ public static final int ETH_SRC = 4;
+ /** Ethernet frame type */
+ public static final int ETH_TYPE = 5;
+ /** VLAN id. */
+ public static final int VLAN_VID = 6;
+ /** VLAN priority. */
+ public static final int VLAN_PCP = 7;
+ /** IP DSCP (6 bits in ToS field). */
+ public static final int IP_DSCP = 8;
+ /** IP ECN (2 bits in ToS field). */
+ public static final int IP_ECN = 9;
+ /** IP protocol. */
+ public static final int IP_PROTO = 10;
+ /** IPv4 source address. */
+ public static final int IPV4_SRC = 11;
+ /** IPv4 destination address. */
+ public static final int IPV4_DST = 12;
+ /** TCP source port. */
+ public static final int TCP_SRC = 13;
+ /** TCP destination port. */
+ public static final int TCP_DST = 14;
+ /** UDP source port. */
+ public static final int UDP_SRC = 15;
+ /** UDP destination port. */
+ public static final int UDP_DST = 16;
+ /** SCTP source port. */
+ public static final int SCTP_SRC = 17;
+ /** SCTP destination port. */
+ public static final int SCTP_DST = 18;
+ /** ICMP type. */
+ public static final int ICMPV4_TYPE = 19;
+ /** ICMP code. */
+ public static final int ICMPV4_CODE = 20;
+ /** ARP opcode. */
+ public static final int ARP_OP = 21;
+ /** ARP source IPv4 address. */
+ public static final int ARP_SPA = 22;
+ /** ARP target IPv4 address. */
+ public static final int ARP_TPA = 23;
+ /** ARP source hardware address. */
+ public static final int ARP_SHA = 24;
+ /** ARP target hardware address. */
+ public static final int ARP_THA = 25;
+ /** IPv6 source address. */
+ public static final int IPV6_SRC = 26;
+ /** IPv6 destination address. */
+ public static final int IPV6_DST = 27;
+ /** IPv6 Flow Label */
+ public static final int IPV6_FLABEL = 28;
+ /** ICMPv6 type. */
+ public static final int ICMPV6_TYPE = 29;
+ /** ICMPv6 code. */
+ public static final int ICMPV6_CODE = 30;
+ /** Target address for ND. */
+ public static final int IPV6_ND_TARGET = 31;
+ /** Source link-layer for ND. */
+ public static final int IPV6_ND_SLL = 32;
+ /** Target link-layer for ND. */
+ public static final int IPV6_ND_TLL = 33;
+ /** MPLS label. */
+ public static final int MPLS_LABEL = 34;
+ /** MPLS TC. */
+ public static final int MPLS_TC = 35;
+ /** MPLS BoS bit. */
+ public static final int MPLS_BOS = 36;
+ /** PBB I-SID. */
+ public static final int PBB_ISID = 37;
+ /** Logical Port Metadata. */
+ public static final int TUNNEL_ID = 38;
+ /** IPv6 Extension Header pseudo-field */
+ public static final int IPV6_EXTHDR = 39;
+
+ /**
+ * OFPXMC_NXM_1 class Constants
+ */
+
+ /** NXM IPv4 Tunnel Endpoint Source */
+ public static final int NXM_NX_TUN_IPV4_SRC = 31;
+ /** NXM IPv4 Tunnel Endpoint Destination */
+ public static final int NXM_NX_TUN_IPV4_DST = 32;
+ /** NXM TCP_Flag value */
+ public static final int NXM_NX_TCP_FLAG = 34;
+
+ private OxmMatchConstants() {
+ //not called
+ }
}
\ No newline at end of file