|
|||||||||
| 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.TCPKey
public class TCPKey
| Field Summary | |
|---|---|
private static String |
CLOSE_WAIT
|
private static int |
CLOSE_WAIT_TIMEOUT
|
private static String |
CLOSED
|
private static int |
CLOSED_TIMEOUT
|
private static String |
CLOSING
|
private static int |
CLOSING_TIMEOUT
|
private int |
dstPort
Destination Port |
private static String |
ESTABLISHED
|
private static int |
ESTABLISHED_TIMEOUT
|
private static String |
FIN_WAIT
|
private static int |
FIN_WAIT_TIMEOUT
|
private static String |
LAST_ACK
|
private static int |
LAST_ACK_TIMEOUT
|
private static String |
LISTEN
|
private static int |
LISTEN_TIMEOUT
|
private static String |
NONE
|
private static int |
NONE_TIMEOUT
|
private int |
srcPort
Source Port |
private static String |
SYN_RCV
|
private static int |
SYN_RCV_TIMEOUT
|
private static String |
SYN_SENT
|
private static int |
SYN_SENT_TIMEOUT
|
private static String |
TIME_WAIT
|
private static int |
TIME_WAIT_TIMEOUT
|
| Fields inherited from class verinec.netsim.firewall.util.tables.keys.SimpleKey |
|---|
CONFIG_FILE_NAME |
| Constructor Summary | |
|---|---|
TCPKey(IAddress src,
IAddress dst,
int srcPort,
int dstPort)
Creates a new TCP Key for the Hash Table. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Equals methos which overrides @link Object#equals(java.lang.Object) The method was overriden so that the one can compare @link ITableKey Objects. |
int |
getDstPort()
|
private FSMSocketImpl |
getSocket(Node node)
|
int |
getSrcPort()
|
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. |
private String |
retrieveState(FSMSocketImpl sock)
|
private int |
retrieveTimeout(FSMSocketImpl sock)
|
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 |
|---|
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 |
|---|
private static final String NONE
private static int NONE_TIMEOUT
private static final String CLOSED
private static int CLOSED_TIMEOUT
private static final String CLOSE_WAIT
private static int CLOSE_WAIT_TIMEOUT
private static final String CLOSING
private static int CLOSING_TIMEOUT
private static final String ESTABLISHED
private static int ESTABLISHED_TIMEOUT
private static final String FIN_WAIT
private static int FIN_WAIT_TIMEOUT
private static final String LAST_ACK
private static int LAST_ACK_TIMEOUT
private static final String LISTEN
private static int LISTEN_TIMEOUT
private static final String SYN_RCV
private static int SYN_RCV_TIMEOUT
private static final String SYN_SENT
private static int SYN_SENT_TIMEOUT
private static final String TIME_WAIT
private static int TIME_WAIT_TIMEOUT
private int dstPort
private int srcPort
| Constructor Detail |
|---|
public TCPKey(IAddress src,
IAddress dst,
int srcPort,
int dstPort)
src - Source address of the TCP Packet.dst - Destination address of the TCP Packet.srcPort - Destination Port of the TCP Packet.dstPort - Source Port of the TCP Packet| Method Detail |
|---|
public int getDstPort()
public int getSrcPort()
public boolean equals(Object other)
ITableKey
equals in interface ITableKeyequals in class SimpleKeyother - the Other Object to compare against.
SimpleKey.equals(java.lang.Object)
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)private int retrieveTimeout(FSMSocketImpl sock)
private String retrieveState(FSMSocketImpl sock)
private FSMSocketImpl getSocket(Node node)
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 | ||||||||