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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NGUYEN Do Duc Anh
GNS3_unikernel_testbed
Commits
6e17d54c
Commit
6e17d54c
authored
6 months ago
by
NGUYEN Do Duc Anh
Browse files
Options
Downloads
Patches
Plain Diff
change to debug log
parent
2d9576d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simple-IDS/custom_option.ml
+2
-2
2 additions, 2 deletions
simple-IDS/custom_option.ml
with
2 additions
and
2 deletions
simple-IDS/custom_option.ml
+
2
−
2
View file @
6e17d54c
...
...
@@ -91,7 +91,7 @@ let rec add_custom_option options_cs =
|
0
->
(* End of Option List *)
let
custom_opt
=
create
(
Int32
.
of_int
0
)
255
0
in
let
custom_opt_cs
=
to_cstruct
custom_opt
in
Logs
.
err
(
fun
m
->
m
"Not found and add first custom"
);
Logs
.
debug
(
fun
m
->
m
"Not found and add first custom"
);
Cstruct
.
append
custom_opt_cs
options_cs
|
1
->
(* No Operation (NOP) *)
(* Move to the next option (1 byte length for NOP) *)
...
...
@@ -107,7 +107,7 @@ let rec add_custom_option options_cs =
let
new_custom_option
=
add_entry
custom_option
(
Int32
.
of_int
0
)
255
0
in
(* Convert new custom option to bytes *)
let
new_custom_option_cs
=
to_cstruct
new_custom_option
in
Logs
.
err
(
fun
m
->
m
"found and add new custom"
);
Logs
.
debug
(
fun
m
->
m
"found and add new custom"
);
(* Append the new custom option bytes to the rest of option bytes*)
Cstruct
.
append
new_custom_option_cs
(
Cstruct
.
shift
options_cs
option_length
)
...
...
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