verinec.netsim.firewall.packetFilter
Interface IPacketFilter

All Known Implementing Classes:
PacketFilterChain, PacketFilterRule

public interface IPacketFilter

Interface to the Packet-Filter

Version:
$Revision: 825 $
Author:
jason.hug@unifr.ch

Method Summary
 IPacketAction matchAction(Packet packet, String interfaceRef, String direction, String hostname, String simTime, ILogger eventsLog)
          This method receives a packet and checks in the defined packet-filter-chains if there are any rules that match.
 String toString()
          This returns a String representation of the Packet Filter
 

Method Detail

matchAction

IPacketAction matchAction(Packet packet,
                          String interfaceRef,
                          String direction,
                          String hostname,
                          String simTime,
                          ILogger eventsLog)
This method receives a packet and checks in the defined packet-filter-chains if there are any rules that match. If so the defined action is returned. If no match was observed the default policy of the packet-filter-chain is returned.

Parameters:
packet - Packet that should be inspected.
interfaceRef - From which interface the packet came from.
direction - In which direction the packet is heading. Use @link verinec.netsim.firewall.IFirewall#IN IN, @link verinec.netsim.firewall.IFirewall#OUT OUT or @link verinec.netsim.firewall.IFirewall#FORWARD FORWARD.
hostname - The hostname of the node for which the firewall is checking for.
simTime - Simulation time at which the firewall is being consulted.
eventsLog - The Verinec Simulator Event logger instance.
Returns:
The corresponding Action.

toString

String toString()
This returns a String representation of the Packet Filter

Overrides:
toString in class Object
Returns:
the a String representation of the Packet Filter

Copyright © 2005 Verinec, DIUF