aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-06-17 22:55:55 +0200
committerMosder <xmosder12@gmail.com>2026-06-17 22:55:55 +0200
commitd62be280a151883866554e9ea00a5efed2fa593a (patch)
tree2ab15188499eb5c0d7f9c36d1b2c63c92c31a602 /main.c
parentc2568d72efca8fae3c610072cb055f9c8de3ca5f (diff)
feat: added simple reading of packets from file and printing the payloads. TODO: utilize TCP sequence number to make sure the stream is read in order and parse the packets without reassemblying the entire stream (which might be enormous), but keeping in mind that entire fight result might be accross multiple segments
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/main.c b/main.c
index 456b590..eadb516 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <string.h>
+#include "analyzer/analyzer.h"
#include "analyzer/capture.h"
#include "analyzer/utils/fs.h"
@@ -22,14 +23,6 @@ void start_live_analyzer() {
printf("Not implemented\n");
}
-// analyzes the specified file
-// params:
-// - file_path - path to the .pcap file to be analyzed
-void analyze_file(char *file_path) {
- // TODO: implement
- printf("Not implemented\n");
-}
-
int main(int argc, char *argv[]) {
create_necessary_directories();