I'm using dumpcap to capture packets. Typically looks like this:
I put this into a script and would like to save the number of captured packets (63 in the example above) to a file. I can do it by using for example tshark, but that's not what I'm after. Just looking for something like wc -l that gives me the count of captured packets in the pcap file. Any suggestions? Thanks! /Z asked 28 Apr '15, 19:38 SamA |
2 Answers:
If you only want the packet count, after answered 28 Apr '15, 20:30 cmaynard ♦♦ |
Just found the answer myself: capinfos test.pcap does the trick! answered 28 Apr '15, 20:13 SamA |
Thanks cmaynard. Useful!