2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowjava.protocol.api.util;
11 * Stores oxm_match constants
12 * @author michal.polkorab
15 public abstract class OxmMatchConstants {
17 /** Backward compatibility with NXM */
18 public static final int NXM_0_CLASS = 0x0000;
19 /** Backward compatibility with NXM */
20 public static final int NXM_1_CLASS = 0x0001;
21 /** Basic class for OpenFlow */
22 public static final int OPENFLOW_BASIC_CLASS = 0x8000;
23 /** Experimenter class */
24 public static final int EXPERIMENTER_CLASS = 0xFFFF;
26 /** Switch input port */
27 public static final int IN_PORT = 0;
28 /** Switch physical input port */
29 public static final int IN_PHY_PORT = 1;
30 /** Metadata passed between tables */
31 public static final int METADATA = 2;
32 /** Ethernet destination address */
33 public static final int ETH_DST = 3;
34 /** Ethernet source address */
35 public static final int ETH_SRC = 4;
36 /** Ethernet frame type */
37 public static final int ETH_TYPE = 5;
39 public static final int VLAN_VID = 6;
41 public static final int VLAN_PCP = 7;
42 /** IP DSCP (6 bits in ToS field). */
43 public static final int IP_DSCP = 8;
44 /** IP ECN (2 bits in ToS field). */
45 public static final int IP_ECN = 9;
47 public static final int IP_PROTO = 10;
48 /** IPv4 source address. */
49 public static final int IPV4_SRC = 11;
50 /** IPv4 destination address. */
51 public static final int IPV4_DST = 12;
52 /** TCP source port. */
53 public static final int TCP_SRC = 13;
54 /** TCP destination port. */
55 public static final int TCP_DST = 14;
56 /** UDP source port. */
57 public static final int UDP_SRC = 15;
58 /** UDP destination port. */
59 public static final int UDP_DST = 16;
60 /** SCTP source port. */
61 public static final int SCTP_SRC = 17;
62 /** SCTP destination port. */
63 public static final int SCTP_DST = 18;
65 public static final int ICMPV4_TYPE = 19;
67 public static final int ICMPV4_CODE = 20;
69 public static final int ARP_OP = 21;
70 /** ARP source IPv4 address. */
71 public static final int ARP_SPA = 22;
72 /** ARP target IPv4 address. */
73 public static final int ARP_TPA = 23;
74 /** ARP source hardware address. */
75 public static final int ARP_SHA = 24;
76 /** ARP target hardware address. */
77 public static final int ARP_THA = 25;
78 /** IPv6 source address. */
79 public static final int IPV6_SRC = 26;
80 /** IPv6 destination address. */
81 public static final int IPV6_DST = 27;
82 /** IPv6 Flow Label */
83 public static final int IPV6_FLABEL = 28;
85 public static final int ICMPV6_TYPE = 29;
87 public static final int ICMPV6_CODE = 30;
88 /** Target address for ND. */
89 public static final int IPV6_ND_TARGET = 31;
90 /** Source link-layer for ND. */
91 public static final int IPV6_ND_SLL = 32;
92 /** Target link-layer for ND. */
93 public static final int IPV6_ND_TLL = 33;
95 public static final int MPLS_LABEL = 34;
97 public static final int MPLS_TC = 35;
99 public static final int MPLS_BOS = 36;
101 public static final int PBB_ISID = 37;
102 /** Logical Port Metadata. */
103 public static final int TUNNEL_ID = 38;
104 /** IPv6 Extension Header pseudo-field */
105 public static final int IPV6_EXTHDR = 39;
108 * OFPXMC_NXM_1 class Constants
111 /** NXM IPv4 Tunnel Endpoint Source */
112 public static final int NXM_NX_TUN_IPV4_SRC = 31;
113 /** NXM IPv4 Tunnel Endpoint Destination */
114 public static final int NXM_NX_TUN_IPV4_DST = 32;
115 /** NXM TCP_Flag value */
116 public static final int NXM_NX_TCP_FLAG = 34;
118 private OxmMatchConstants() {