eve/flow: add per flow TCP oob urg data counter

If TCP urgent handling is set to the OOB processing, the number of OOB
bytes is tracked for SEQ offset calculations. If this offset is
non-zero, add the field to the flow record.

Ticket: #7411.
pull/12272/head
Victor Julien 2 years ago
parent 6882bcb3e5
commit 779f9d8ba3

@ -6602,6 +6602,10 @@
"tc_max_regions": {
"type": "integer"
},
"tc_urgent_oob_data": {
"description": "Number of Out-of-Band bytes sent by server using TCP urgent packets",
"type": "integer"
},
"tcp_flags": {
"type": "string"
},
@ -6617,6 +6621,10 @@
"ts_max_regions": {
"type": "integer"
},
"ts_urgent_oob_data": {
"description": "Number of Out-of-Band bytes sent by client using TCP urgent packets",
"type": "integer"
},
"urg": {
"type": "boolean"
}

@ -318,6 +318,11 @@ static void EveFlowLogJSON(OutputJsonThreadCtx *aft, JsonBuilder *jb, Flow *f)
jb_set_uint(jb, "ts_max_regions", ssn->client.sb.max_regions);
jb_set_uint(jb, "tc_max_regions", ssn->server.sb.max_regions);
if (ssn->urg_offset_ts)
jb_set_uint(jb, "ts_urgent_oob_data", ssn->urg_offset_ts);
if (ssn->urg_offset_tc)
jb_set_uint(jb, "tc_urgent_oob_data", ssn->urg_offset_tc);
}
/* Close tcp. */

Loading…
Cancel
Save