aboutsummaryrefslogtreecommitdiff
path: root/analyzer/parser/parser.h
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-07-10 22:50:12 +0200
committerMosder <xmosder12@gmail.com>2026-07-10 22:50:12 +0200
commit0e9be0d902b44894ed747cabb82ea2120f2e4b45 (patch)
tree8bbf583d44e135c1f5ccdcbfe113b855be41386a /analyzer/parser/parser.h
parent4422f92de05948187eeb0b0067dd947e673f8f1d (diff)
feat: added functionallity for TCP stream reassembly
Diffstat (limited to 'analyzer/parser/parser.h')
-rw-r--r--analyzer/parser/parser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/analyzer/parser/parser.h b/analyzer/parser/parser.h
index 18b4b83..088bb5d 100644
--- a/analyzer/parser/parser.h
+++ b/analyzer/parser/parser.h
@@ -3,6 +3,8 @@
#include "fight_results.h"
+#include "../utils/tcp.h"
+
// "generic" type for parsed data
typedef struct {
enum { FIGHT_RESULTS } data_type;
@@ -14,8 +16,8 @@ typedef struct {
// parse a stream of TCP data
// params:
// - stream - the stream to parse
-// - stream_len - length of the stream to parse
// - parsed_len - pointer to inform how much of the stream was parsed (not all if e.g. start of data is there, but the end isn't yet)
+// - n_parsed_data - pointer to the count of parsed data that was retrieved from the stream
// returns:
// pointer to the array of parsed data
-extern ParsedData *parse_stream(char *stream, int stream_len, int *parsed_len);
+extern ParsedData *parse_stream(TCPStream *stream, size_t *parsed_len, size_t *n_parsed_data);