title: How to get tcpdump to include layer 3 and 4 for packet size?
body: <p>I use the command below to get inter arrival time of packets and length of packets:</p>
  
  <pre><code>tcpdump -r example.pcap -n -ttt &gt; result.txt
  </code></pre>
  
  <p>The result is something like this:</p>
  
  <pre><code>00:00:00.000545 IP src-ip.52871 &gt; dst-ip.39461: Flags [P.], seq 1:69, ack 1, win 16698, length 68
  </code></pre>
  
  <p>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.</p>
  
  <p>What command should i use?</p>