Skip to content

Commit

Permalink
dns: allow triggering raw stream reassembly
Browse files Browse the repository at this point in the history
For TCP streams, app proto stream reassembly can start earlier, instead
of waiting and queueing up data before doing so.

Task OISF#7018
Related to
Bug OISF#7004
  • Loading branch information
jufajardini committed Jun 5, 2024
1 parent 8781e93 commit fb44db8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/src/dns/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ impl DNSState {
);
if size > 0 && cur_i.len() >= size + 2 {
let msg = &cur_i[2..(size + 2)];
sc_app_layer_parser_trigger_raw_stream_reassembly(flow, Direction::ToServer as i32);
let frame = Frame::new(
flow,
&stream_slice,
Expand Down Expand Up @@ -612,6 +613,7 @@ impl DNSState {
);
if size > 0 && cur_i.len() >= size + 2 {
let msg = &cur_i[2..(size + 2)];
sc_app_layer_parser_trigger_raw_stream_reassembly(flow, Direction::ToClient as i32);
let frame = Frame::new(
flow,
&stream_slice,
Expand Down

0 comments on commit fb44db8

Please sign in to comment.