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