1 package edu.uci.iotproject.trafficreassembly.layer2;
3 import org.pcap4j.core.PcapPacket;
6 * Interface for observing a {@link Layer2Flow}.
8 * @author Janus Varmarken {@literal <jvarmark@uci.edu>}
9 * @author Rahmadi Trimananda {@literal <rtrimana@uci.edu>}
11 public interface Layer2FlowObserver {
14 * Invoked when a new packet is added to the observed flow.
15 * @param flow The observed flow.
16 * @param newPacket The packet that was added to the flow.
18 void onNewPacket(Layer2Flow flow, PcapPacket newPacket);