3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
11 * @file IPluginOutDataPacketService.java
13 * @brief Interface SAL will need to register in order to get some
14 * packets from the southbound protocol plugins
16 * Interface SAL will need to register in order to get some
17 * packets from the southbound protocol plugins
20 package org.opendaylight.controller.sal.packet;
23 * Interface used by SAL to intercept any Data Packet coming from the
24 * southbound protocol plugins
27 public interface IPluginOutDataPacketService {
29 * Handler for receiving the packet. The SAL layer can signal back
30 * to the southbound plugin if the packet has been consumed or can
31 * go for further processing. Usually after SAL processing
32 * probably there is no other processing to be done, but just in
33 * case there is chain the return code can be used.
34 * The protocol plugin is supposed to deliver a packet with the
35 * IncomingNodeConnector set
37 * @param inPkt Packet received
39 * @return An indication if the packet should still be processed
40 * or we should stop it.
42 PacketResult receiveDataPacket(RawPacket inPkt);