-
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
dcerpc/tcp: add frames support #11678
base: master
Are you sure you want to change the base?
Conversation
Frames of the following types have been added for toserver direction: 1. Pdu: The entire Protocol Data Unit 2. Hdr: Header of the request 3. Data: PDU data Feature 4904
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #11678 +/- ##
==========================================
- Coverage 82.61% 77.64% -4.98%
==========================================
Files 919 919
Lines 248997 248953 -44
==========================================
- Hits 205717 193291 -12426
- Misses 43280 55662 +12382
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 22289 |
@@ -997,6 +1008,10 @@ impl DCERPCState { | |||
} | |||
parsed = self.bytes_consumed; | |||
|
|||
let _hdr = Frame::new(flow, &stream_slice, &cur_i, parsed as i64, DCERPCFrameType::Hdr as u8, None); |
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.
Is there not a tx ?
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.
Not yet.
What is expected out of this draft ? Just to keep as a reminder and rebase once the blocker is merged ? |
yes. There's a chain of blockers in dcerpc work. |
My advice is to do a draft PR with all the commits, and then a regular PR with just the first commits ;-) |
Link to ticket: https://redmine.openinfosecfoundation.org/issues/4904
SV_BRANCH=OISF/suricata-verify#2024
Note: This is Blocked by #11675. Currently, it is incorrect for fragmented data. The buffering happens in the input handler with a new allocation every time. However, the
Frame
API expects pointer to the stream buffer which is available only with the current input.TODO: