Commit bc1d7a58 authored by Amit Karamchandani Batra's avatar Amit Karamchandani Batra
Browse files

Cleanup of the DAD service implementation

parent f50c0ee6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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):