X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2FIDataPacketListen.java;fp=opendaylight%2Fprotocol_plugins%2Fopenflow_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2FIDataPacketListen.java;h=300967e87cf7b78a797b0a19d5a1e1632de89a84;hb=85073423c6069e4b58fffde7cf19c806b2b52dd5;hp=0000000000000000000000000000000000000000;hpb=c5630f2945eb5370f9829514ef72de41d41eb2be;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/IDataPacketListen.java b/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/IDataPacketListen.java new file mode 100644 index 0000000000..300967e87c --- /dev/null +++ b/opendaylight/protocol_plugins/openflow_netty/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/IDataPacketListen.java @@ -0,0 +1,39 @@ + +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ + +/** + * @file IDataPacketListen.java + * + * @brief Interface to dispatch locally in the protocol plugin the + * data packets, intended especially for Discovery, main difference + * here with the analogous of SAL is that this is Global + * inherently + * + */ +package org.opendaylight.controller.protocol_plugin.openflow; + +import org.opendaylight.controller.sal.packet.RawPacket; +import org.opendaylight.controller.sal.packet.PacketResult; + +/** + * Interface to dispatch locally in the protocol plugin the + * data packets, intended especially for Discovery, main difference + * here with the analogous of SAL is that this is Global + * inherently. + */ +public interface IDataPacketListen { + /** + * Dispatch received data packet + * + * @param inPkt + * The incoming raw packet + * @return Possible results for Data packet processing handler + */ + public PacketResult receiveDataPacket(RawPacket inPkt); +}