From d62be280a151883866554e9ea00a5efed2fa593a Mon Sep 17 00:00:00 2001 From: Mosder Date: Wed, 17 Jun 2026 22:55:55 +0200 Subject: 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 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a85df64..d0a760e 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,19 @@ global: compile local: compile mv branal ${HOME}/.local/bin -compile: utils capture - gcc *.o main.c -o branal +compile: utils capture analyzer + gcc *.o main.c -lpcap -o branal rm *.o utils: gcc -c analyzer/utils/fs.c gcc -c analyzer/utils/time.c + gcc -c analyzer/utils/pcap.c capture: gcc -c analyzer/capture.c + +analyzer: + gcc -c analyzer/analyzer.c + +.PHONY: analyzer -- cgit v1.2.3