simnet
Interface BPFConsumer

All Known Implementing Classes:
PacketDump, Ping, Traceroute, WormModel

public interface BPFConsumer

All objects that want to be able to receive packets forwarded from BPF filters must implement this interface.


Method Summary
 void inBPF(int bpf_id, IP_Packet ip_packet)
          Processes incoming IP packets from any BPF rule registered by this Object.
 

Method Detail

inBPF

public void inBPF(int bpf_id,
                  IP_Packet ip_packet)
Processes incoming IP packets from any BPF rule registered by this Object.

Parameters:
bpf_id - the ID of the BPF rule that the ip_packet matched
ip_packet - incoming ip_packet from BPF