Skip to content
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

pgsq: add cancel request message - v1 #10000

Closed
wants to merge 2 commits into from

Conversation

jufajardini
Copy link
Contributor

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

Describe changes:

  • add cancel request message
  • create cancelrequestreceive state, to possibly be used to compare backend key and backend pid, once cancel request is received
  • extract length validation to function for standard cases

To consider: create an event in case a cancel request is sent with wrong data?

No SV yet as must find/create traffic.

This is called so many times that it seems to make sense that we use a
function for this.
This message can occur in a few different scenarios, so it's important
that the parser can properly recognize it.

TODO:
 - check/bind cancel request message to correct transaction/state based on
  pid/backend_key?

Task OISF#6577
Copy link

codecov bot commented Dec 7, 2023

Codecov Report

Merging #10000 (6247844) into master (c1bf955) will increase coverage by 0.04%.
Report is 13 commits behind head on master.
The diff coverage is 88.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10000      +/-   ##
==========================================
+ Coverage   82.42%   82.46%   +0.04%     
==========================================
  Files         970      970              
  Lines      271363   271394      +31     
==========================================
+ Hits       223667   223812     +145     
+ Misses      47696    47582     -114     
Flag Coverage Δ
fuzzcorpus 64.57% <50.00%> (+0.11%) ⬆️
suricata-verify 61.33% <53.33%> (-0.02%) ⬇️
unittests 62.88% <84.00%> (-0.01%) ⬇️

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

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 16945

@jufajardini
Copy link
Contributor Author

Replaced by: #10019

@jufajardini jufajardini deleted the pgsql-cancel-req-6577/v1 branch December 15, 2023 15:58
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.

2 participants