diff options
| author | Mosder <xmosder12@gmail.com> | 2026-07-28 16:38:04 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-07-28 16:38:04 +0200 |
| commit | 9e874301350a70a1ba40b5508878d559f68f8f4a (patch) | |
| tree | 89f561b31bdda9bed936961dd7ef0268228a5b69 /analyzer/utils/tcp.h | |
| parent | 95763527e73c0d06d3887e4a2da22f627f13bfaa (diff) | |
refactor: generalized dynamic arrays with structures/array.h
Diffstat (limited to 'analyzer/utils/tcp.h')
| -rw-r--r-- | analyzer/utils/tcp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/analyzer/utils/tcp.h b/analyzer/utils/tcp.h index 382c585..55cbf3e 100644 --- a/analyzer/utils/tcp.h +++ b/analyzer/utils/tcp.h @@ -4,6 +4,7 @@ #include <pcap.h> #include "structures/heap.h" +#include "structures/array.h" #ifndef TCP_H #define TCP_H @@ -32,9 +33,7 @@ extern TCPSegment get_segment_from_packet(const byte_t *packet, const struct pca // struct that stores all the information about stream typedef struct { - byte_t *data; // bytes in the stream - size_t len; // length of the stream - size_t capacity; // capacity of the data buffer + DynArray bytes; // bytes in the stream uint32_t seq; // TCP sequence number of the first byte in the stream uint16_t port; // client port of currently analyzed connection ConnectionSource src; // stream's source |
