aboutsummaryrefslogtreecommitdiff
path: root/analyzer/utils/pcap.h
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-07-06 10:06:10 +0200
committerMosder <xmosder12@gmail.com>2026-07-06 10:06:10 +0200
commitf57066460f7c914b07a612d037eb5e57f617d5b2 (patch)
tree703a7b21c24fa1ab002349a6979da53158d161b2 /analyzer/utils/pcap.h
parentf1d1feabec428bf9ffc2c786d28ce7cc95725d48 (diff)
feat: added basic structures for fight results parsing and base functionallity of finding only the necessary data. Still need to do tcp stream reassembly and the actual parsing of the data.
Diffstat (limited to 'analyzer/utils/pcap.h')
-rw-r--r--analyzer/utils/pcap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/analyzer/utils/pcap.h b/analyzer/utils/pcap.h
index d31b961..16da7cd 100644
--- a/analyzer/utils/pcap.h
+++ b/analyzer/utils/pcap.h
@@ -8,6 +8,7 @@
// - packet - captured packet
// - packet_data - metadata about packet
// - payload_len - pointer to save the payload length to or -1 if not a correct packet
+// - tcp_seq - pointer to save the TCP sequence number
// returns:
// pointer to the payload or NULL if not a correct packet
-extern const unsigned char *get_payload_from_packet(const unsigned char *packet, const struct pcap_pkthdr *packet_data, int *payload_len);
+extern const unsigned char *get_payload_from_packet(const unsigned char *packet, const struct pcap_pkthdr *packet_data, int *payload_len, uint32_t *tcp_seq);