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
rust/ike: convert parser to nom7 functions and upgrade dependency #6963
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6963 +/- ##
==========================================
- Coverage 77.71% 77.68% -0.04%
==========================================
Files 628 628
Lines 185653 185656 +3
==========================================
- Hits 144289 144232 -57
- Misses 41364 41424 +60
Flags with carried forward coverage won't be shown. Click here to find out more. |
reserved, | ||
payload_length | ||
}, | ||
data: if let Some(_data) = payload_data { _data } else { b"" } |
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.
One could use unwrap_or_default()
here as well, right?
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.
@chifflier do you want to address this or shall we stage for merge as is?
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.
This is indeed equivalent to unwrap_or_default()
. I'd prefer to use the later (shorter and more idiomatic).
Do you want me to push a second commit on this PR, or resubmit?
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.
can you do a new PR?
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.
Sure! PR sent in #6969
Also looks good and passes suricata-verify tests for IKE. Also learned about |
replaced by #6969 |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/4994
Describe changes:
ipsec-parser