Skip to content

decode-ipv6: Set IPv6 proto incase of ext header parsing error#8979

Closed
coledishington wants to merge 1 commit intoOISF:masterfrom
coledishington:ipv6-fix-decode-event-6086-v3
Closed

decode-ipv6: Set IPv6 proto incase of ext header parsing error#8979
coledishington wants to merge 1 commit intoOISF:masterfrom
coledishington:ipv6-fix-decode-event-6086-v3

Conversation

@coledishington
Copy link

Set the IPv6 packet proto before parsing the ext headers, similar to decode-ipv4, incase of an ext header parsing error. Otherwise rule decode-events are not triggered for packets encapsulated in IPv6.

Bug: #6086.

Make sure these boxes are signed before submitting your Pull Request -- thank you.

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6086

Link to suricata-verify test case:
OISF/suricata-verify#1231

Describe changes:
Set the IPv6 packet proto before parsing the ext headers, similar to decode-ipv4, incase of an ext header parsing error.

SV_BRANCH=pr/1231

Set the IPv6 packet proto before parsing the ext headers, similar to
decode-ipv4, incase of an ext header parsing error. Otherwise
rule decode-events are not triggered for packets encapsulated in IPv6.

Bug: OISF#6086.
@victorjulien
Copy link
Member

SV 1231 needs to be rebased and force-pushed, then we can restart the CI jobs

@coledishington
Copy link
Author

SV 1231 needs to be rebased and force-pushed, then we can restart the CI jobs

Done, thanks.

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #8979 (763b717) into master (6154bab) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8979      +/-   ##
==========================================
- Coverage   82.42%   82.41%   -0.01%     
==========================================
  Files         969      969              
  Lines      273476   273477       +1     
==========================================
- Hits       225410   225397      -13     
- Misses      48066    48080      +14     
Flag Coverage Δ
fuzzcorpus 64.93% <100.00%> (-0.01%) ⬇️
suricata-verify 60.50% <100.00%> (-0.01%) ⬇️
unittests 62.91% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@victorjulien victorjulien mentioned this pull request Jun 8, 2023
@victorjulien
Copy link
Member

Merged in #8994, thanks!

@catenacyber
Copy link
Contributor

Should this be back ported ?

@victorjulien
Copy link
Member

Should this be back ported ?

Ticket is already tagged for backport, ya.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments