aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-06-13 20:14:51 +0200
committerMosder <xmosder12@gmail.com>2026-06-13 20:14:51 +0200
commitf0d9f0c2dcc2029a907deee7981e7e5230b6d77c (patch)
treec20714dd85629f7fbacb10c0dfc8d80bc45c14a6 /main.c
parent66226cdc6eb6dbcfde7932a192a438ebfe438bda (diff)
feat: added the simple capturing packets mode
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/main.c b/main.c
index aa43e57..456b590 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <string.h>
+#include "analyzer/capture.h"
#include "analyzer/utils/fs.h"
// prints help
@@ -21,12 +22,6 @@ void start_live_analyzer() {
printf("Not implemented\n");
}
-// starts the only capturing packets mode
-void start_capturing_packets() {
- // TODO: implement
- printf("Not implemented\n");
-}
-
// analyzes the specified file
// params:
// - file_path - path to the .pcap file to be analyzed
@@ -48,7 +43,7 @@ int main(int argc, char *argv[]) {
start_live_analyzer();
}
else if (strcmp("c", argv[1]) == 0 || strcmp("capture", argv[1]) == 0) {
- start_capturing_packets();
+ capturing_mode(argc >= 3 ? argv[2] : NULL);
}
else if (strcmp("h", argv[1]) == 0 || strcmp("help", argv[1]) == 0) {
print_help();