Skip to content

Comments

detect/sip: add sticky buffers to match headers v2#10907

Closed
glongo wants to merge 11 commits intoOISF:masterfrom
glongo:dev-6374-sip-hdrs-sticky-buffers-v2
Closed

detect/sip: add sticky buffers to match headers v2#10907
glongo wants to merge 11 commits intoOISF:masterfrom
glongo:dev-6374-sip-hdrs-sticky-buffers-v2

Conversation

@glongo
Copy link
Contributor

@glongo glongo commented Apr 18, 2024

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

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

Describe changes:

  • Match headers in compact form
  • Add doc
  • SV: add test for compact form

SV_BRANCH=OISF/suricata-verify#1787

@codecov
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 96.45390% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 82.84%. Comparing base (2b4e102) to head (7f5570e).
Report is 100 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10907      +/-   ##
==========================================
+ Coverage   77.64%   82.84%   +5.20%     
==========================================
  Files         922      930       +8     
  Lines      247806   247976     +170     
==========================================
+ Hits       192400   205440   +13040     
+ Misses      55406    42536   -12870     
Flag Coverage Δ
fuzzcorpus 64.26% <48.22%> (?)
suricata-verify 62.45% <96.45%> (+0.02%) ⬆️
unittests 62.19% <48.22%> (-0.01%) ⬇️

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

@jufajardini jufajardini added the needs rebase Needs rebase to main label Apr 29, 2024
- Stats counters that are 0 can now be hidden from EVE logs. Default behavior
still logs those (see :ref:`EVE Output - Stats <eve-json-output-stats>` for configuration setting).
- The following sticky buffers for matching SIP headers have been implemented:
- sip.via
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like these miss in doc/userguide/rules/sip-keywords.rst ;-)

pub version: String,
pub code: String,
pub reason: String,
pub headers: HashMap<String, String>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if I have multiple via headers ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value is updated and the old one is returned.

Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Giuseppe, will need at least a rebase, and doc update for these new keywords

@catenacyber
Copy link
Contributor

Also for your info, you can take a look at #10966

@glongo
Copy link
Contributor Author

glongo commented May 1, 2024

Replaced with #11004

@glongo glongo closed this May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Needs rebase to main

Development

Successfully merging this pull request may close these issues.

3 participants