diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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(); |
