2 * Copyright (c) 2017 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
9 package org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.tablefeatures.matchfield;
11 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
12 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
14 public class UdpDstMatchFieldSerializer extends AbstractMatchFieldSerializer {
16 protected int getOxmClassCode() {
17 return OxmMatchConstants.OPENFLOW_BASIC_CLASS;
21 protected int getOxmFieldCode() {
22 return OxmMatchConstants.UDP_DST;
26 protected int getValueLength() {
27 return EncodeConstants.SIZE_OF_SHORT_IN_BYTES;