2 * Copyright (C) 2014 Red Hat, Inc.
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 brent.salisbury
17 public class NxmTunnelIpv4SrcSerializer extends AbstractOxmIpv4AddressSerializer {
20 protected int getOxmClassCode() {
21 return OxmMatchConstants.NXM_1_CLASS;
25 protected int getOxmFieldCode() {
26 return OxmMatchConstants.NXM_NX_TUN_IPV4_SRC;
30 protected int getValueLength() {
31 return EncodeConstants.SIZE_OF_INT_IN_BYTES;