Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GNS3_unikernel_testbed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NGUYEN Do Duc Anh
GNS3_unikernel_testbed
Commits
dcbac29c
Commit
dcbac29c
authored
1 month ago
by
NGUYEN Do Duc Anh
Browse files
Options
Downloads
Patches
Plain Diff
fix bug
parent
ef695e51
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
simple-IDS/ids.ml
+1
-1
1 addition, 1 deletion
simple-IDS/ids.ml
with
1 addition
and
1 deletion
simple-IDS/ids.ml
+
1
−
1
View file @
dcbac29c
...
...
@@ -29,7 +29,7 @@ let detect_and_output_private packet header frame inter_num output_private outpu
in
let
options
=
ipv4_hdr
.
options
in
let
decision_list
=
Custom_option
.
get_decision_list
ipv4_hdr
.
dst
!
attacker_ip_lst
in
match
(
decision_list
<>
[]
,
is_attack
,
(
Cstruct
.
length
options
=
12
&&
Cstruct
.
get_uint8
options
11
=
0
))
with
match
(
decision_list
<>
[]
,
is_attack
,
(
Cstruct
.
length
options
=
12
&&
Cstruct
.
get_uint8
options
7
=
1
))
with
|
false
,
false
,
_
->
(* If the packet is NOT in the path of attacks, just look for registration request *)
Custom_option
.
read_custom_opt
ipv4_hdr
.
src
options
;
...
...
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