Skip to content
Snippets Groups Projects
Commit bc1d7a58 authored by karamchandan's avatar karamchandan
Browse files

Cleanup of the DAD service implementation

parent f50c0ee6
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!141Pre-release fixes and code cleanup in L3 cybersecurity components
......@@ -51,7 +51,7 @@ JSON_BLANK = {
"port_o": "", # Client port
"ip_d": "", # Server ip
"port_d": "", # Server port
"flow_id": "", # Identifier:c_ip,c_port,s_ip,s_port,time_start
"flow_id": "", # Identifier: c_ip,c_port, s_ip,s_port, time_start
"protocol": "", # Connection protocol
"time_start": 0.0, # Start of connection
"time_end": 0.0, # Time of last packet
......@@ -72,8 +72,8 @@ class l3_distributedattackdetector:
self.cad_features = {}
self.conn_id = ()
self.connections_dict = {} # Dict for storing ALL data
self.new_connections = {} # Dict for storing NEW data
self.connections_dict = {} # Dictionary for storing all connections data
self.new_connections = {} # Dictionary for storing new connections data
self.known_attack_ips = self.read_kwnown_attack_ips()
......@@ -150,7 +150,7 @@ class l3_distributedattackdetector:
return tstat_file
else:
LOGGER.info("No Tstat directory!")
LOGGER.info("No Tstat directory found. Waiting...")
time.sleep(5)
def process_line(self, line):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment