Mass replace CRLF->LF
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / serialization / match / OxmInPortSerializer.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.openflowjava.protocol.impl.serialization.match;
9
10 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
11 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
12
13 /**
14  * @author michal.polkorab
15  *
16  */
17 public class OxmInPortSerializer extends AbstractOxmPortNumberSerializer {
18
19     @Override
20     protected int getOxmClassCode() {
21         return OxmMatchConstants.OPENFLOW_BASIC_CLASS;
22     }
23
24     @Override
25     protected int getOxmFieldCode() {
26         return OxmMatchConstants.IN_PORT;
27     }
28
29     @Override
30     protected int getValueLength() {
31         return EncodeConstants.SIZE_OF_INT_IN_BYTES;
32     }
33 }