Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
bc1d7a58
Commit
bc1d7a58
authored
1 year ago
by
karamchandan
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup of the DAD service implementation
parent
f50c0ee6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!141
Pre-release fixes and code cleanup in L3 cybersecurity components
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/l3_distributedattackdetector/service/l3_distributedattackdetector.py
+4
-4
4 additions, 4 deletions
...tedattackdetector/service/l3_distributedattackdetector.py
with
4 additions
and
4 deletions
src/l3_distributedattackdetector/service/l3_distributedattackdetector.py
+
4
−
4
View file @
bc1d7a58
...
...
@@ -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
=
{}
# Dict
ionary
for storing
all connections
data
self
.
new_connections
=
{}
# Dict
ionary
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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment