I use the command below to get inter arrival time of packets and length of packets:
tcpdump -r example.pcap -n -ttt > result.txt
The result is something like this:
00:00:00.000545 IP src-ip.52871 > dst-ip.39461: Flags [P.], seq 1:69, ack 1, win 16698, length 68
The length that tcpdump computes is only limited to application layer of packet and i want it to compute layers 3(IP) , 4(TCP or UDP) and 5(Application) of packet for packet size.
What command should i use?