2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.openflowjava.protocol.ext.util;
\r
12 * @author michal.polkorab
\r
15 public class ExtConstants {
\r
17 /** Default OF padding (in bytes) */
\r
18 public static final byte PADDING = 8;
\r
19 /** OpenFlow v1.0 wire protocol number */
\r
20 public static final byte OF10_VERSION_ID = 0x01;
\r
21 /** OpenFlow v1.0 wire protocol number */
\r
22 public static final byte OF13_VERSION_ID = 0x04;
\r
23 /** Index of length in Openflow header */
\r
24 public static final int OFHEADER_LENGTH_INDEX = 2;
\r
25 /** Zero length - used when the length is updated later */
\r
26 public static final int EMPTY_LENGTH = 0;
\r
28 /** Length of long in bytes */
\r
29 public static final byte SIZE_OF_LONG_IN_BYTES = Long.SIZE / Byte.SIZE;
\r
30 /** Length of int in bytes */
\r
31 public static final byte SIZE_OF_INT_IN_BYTES = Integer.SIZE / Byte.SIZE;
\r
32 /** Length of short in bytes */
\r
33 public static final byte SIZE_OF_SHORT_IN_BYTES = Short.SIZE / Byte.SIZE;
\r
34 /** Length of byte in bytes */
\r
35 public static final byte SIZE_OF_BYTE_IN_BYTES = Byte.SIZE / Byte.SIZE;
\r
36 /** Length of 3 bytes */
\r
37 public static final byte SIZE_OF_3_BYTES = 3;
\r
39 /** Common experimenter value */
\r
40 public static final int EXPERIMENTER_VALUE = 0xFFFF;
\r
41 /** OF v1.3 lenght of experimenter_ids - see Multipart TableFeatures (properties) message */
\r
42 public static final byte EXPERIMENTER_IDS_LENGTH = 8;
\r