-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse/size: support IEEE 1541 size units v2 #11471
Conversation
Introduce KiB, MiB and GiB. They are case sensitive as a lower case 'b' means bits in the IEEE 1541 scheme. KiB = 1024 MiB = 1048576 GiB = 1073741824 Ticket: OISF#1457.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11471 +/- ##
==========================================
+ Coverage 82.52% 82.55% +0.02%
==========================================
Files 938 938
Lines 248297 248321 +24
==========================================
+ Hits 204917 205006 +89
+ Misses 43380 43315 -65
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 21483 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Some nits inline and missing small updates to the configuration file below.
Config options:
types.alert.payload-buffer-size: 4kb
types.frame.payload-buffer-size: 4kb
datasets.defaults.memcap: 100mb
Config comments:
the reserved memory (memcap) for flows is 32MB
The memcap can be specified in kb, mb, gb
reassemble 1mb into a stream
Default is unlimited, values can be 64mb
@@ -410,7 +410,7 @@ outputs: | |||
|
|||
# File size limit. Can be specified in kb, mb, gb. Just a number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: comment still says kb, mb, gb..
# string-log-limit: 1kb # limit size of logged strings in bytes. | ||
# Can be specified in kb, mb, gb. Just a number | ||
# string-log-limit: 1KiB # limit size of logged strings in bytes. | ||
# Can be specified in KiB, MiB, GiB. Just a number | ||
# is parsed as bytes. Default is 1KB. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: KB
Replaced by #11485 |
SV_BRANCH=OISF/suricata-verify#1971
https://redmine.openinfosecfoundation.org/issues/1457