package cz.cuni.mff.d3s.jdeeco.network.l1;

import cz.cuni.mff.d3s.jdeeco.network.address.Address;
import cz.cuni.mff.d3s.jdeeco.network.l2.L2Packet;

/**
 * Interface for processing L2 packets from Layer 2 by Layer 1
 * 
 * @author Vladimir Matena <matena@d3s.mff.cuni.cz>
 *
 */
public interface L2PacketProcessor {
	/**
	 * Sends L2 packet to Layer 1
	 * 
	 * @param l2Packet
	 *            Packet to send
	 * @param address
	 *            Destination address
	 * @return True if the packet has been processed, false otherwise
	 */
	public boolean processL2Packet(L2Packet l2Packet, Address address);
}
