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.impl.serialization.match;
10 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
11 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
14 * @author michal.polkorab
17 public class OxmInPortSerializer extends AbstractOxmPortNumberSerializer {
20 protected int getOxmClassCode() {
21 return OxmMatchConstants.OPENFLOW_BASIC_CLASS;
25 protected int getOxmFieldCode() {
26 return OxmMatchConstants.IN_PORT;
30 protected int getValueLength() {
31 return EncodeConstants.SIZE_OF_INT_IN_BYTES;