Let's say that I run: tcpdump -w 0001.pcap -i eth0
and during the capture I'm visting stackoverflow and then I cancel the capture. This gives me a .pcap file with all the captured data and the packets for visiting stackoverflow.
I'm trying to create a simple python3 program that gives me a summary or a list with the total amount of packets it took to visit the website. I'm using the dpkt-module but I can't seem to find a simple solution for this.
I'm pretty bad at Python. I would appreciate any tips on how to do this.