|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.firewall.util.tables.keys.SimpleKey
verinec.netsim.firewall.util.tables.keys.IPKey
public class IPKey
| Field Summary | |
|---|---|
static int |
IP_TIMEOUT
Default time out value for IP-connections (Default Connections) |
| Fields inherited from class verinec.netsim.firewall.util.tables.keys.SimpleKey |
|---|
CONFIG_FILE_NAME |
| Constructor Summary | |
|---|---|
IPKey(IAddress src,
IAddress dst)
Creates a new IP Key for the Hash Table. |
|
| Method Summary | |
|---|---|
boolean |
handleEstablished(Packet packet,
StatefulInspection stateInspect)
Method which checks if a packet is in the NEW satet of the appropriate packet's protocol. |
boolean |
handleNew(Packet packet,
StatefulInspection stateInspect)
Method which checks if a packet is in the ESTABLISHED satet of the appropriate packet's protocol. |
boolean |
handleRelated(Packet packet,
StatefulInspection stateInspect)
Method which checks if a packet is in the RELATED satet of the appropriate packet's protocol. |
static Element |
initTimeouts(Document doc)
Method which loads the timeout values from a config document. |
TableEntry |
updateEntry(TableEntry entry,
boolean reply,
Node node,
String hostname)
Method which updates the connection entry according to the protocol. |
| Methods inherited from class verinec.netsim.firewall.util.tables.keys.SimpleKey |
|---|
equals, getDirection, getDst, getLogger, getProtocol, getSrc, hashCode, loadTimeouts, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int IP_TIMEOUT
| Constructor Detail |
|---|
public IPKey(IAddress src,
IAddress dst)
src - Source address of the IP Packet.dst - Destination address of the IP Packet.| Method Detail |
|---|
public boolean handleNew(Packet packet,
StatefulInspection stateInspect)
ITableKey
packet - Packet which is checked for its state.stateInspect - State Table with all the connection entries of the node.
ITableKey.handleNew(verinec.netsim.entities.packets.Packet, verinec.netsim.firewall.util.tables.StatefulInspection)
public boolean handleEstablished(Packet packet,
StatefulInspection stateInspect)
ITableKey
packet - Packet which is checked for its state.stateInspect - State Table with all the connection entries of the node.
ITableKey.handleEstablished(verinec.netsim.entities.packets.Packet, verinec.netsim.firewall.util.tables.StatefulInspection)
public boolean handleRelated(Packet packet,
StatefulInspection stateInspect)
ITableKey
packet - Packet which is checked for its state.stateInspect - State Table with all the connection entries of the node.
ITableKey.handleRelated(verinec.netsim.entities.packets.Packet, verinec.netsim.firewall.util.tables.StatefulInspection)
public TableEntry updateEntry(TableEntry entry,
boolean reply,
Node node,
String hostname)
ITableKey
entry - Entry to update.reply - If we are dealing with a reply packet.node - Node object needed to retrieve the socket state of a connection (Needed for TCP connections).hostname - Hostname for which the Stateful Inspection Table is active.
ITableKey.updateEntry(verinec.netsim.firewall.util.tables.TableEntry, boolean, verinec.netsim.components.Node, java.lang.String)public static Element initTimeouts(Document doc)
doc - The document where the timeout values are stored. If doc is null the default values will be used.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||