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
26 public interface IPluginOutDataPacketService {
28 * Handler for receiving the packet. The SAL layer can signal back
29 * to the southbound plugin if the packet has been consumed or can
30 * go for further processing. Usually after SAL processing
31 * probably there is no other processing to be done, but just in
32 * case there is chain the return code can be used.
33 * The protocol plugin is supposed to deliver a packet with the
34 * IncomingNodeConnector set
36 * @param inPkt Packet received
38 * @return An indication if the packet should still be processed
39 * or we should stop it.
41 PacketResult receiveDataPacket(RawPacket inPkt);