title: Receiving IP Packets from a raw socket
body: <p>I have the following code to get me all the IP packets that are sent to my machine:</p>
  
  <pre><code>import socket
  
  rs = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP)
      while True:
          print rs.recvfrom(65565)
  </code></pre>
  
  <p>I get multiple lines of something like this printed out to my console</p>
  
  <pre><code>('E \x004tC\x00\x007\x06\x99\x97\xd8:\xdb\xee\xc0\xa8\x00\xf8\x01\xbb\xa3\xb6\xb9\x1cmavT\x14\xbd\x80\x10\x01^\xa6W\x00\x00\x01\x01\x08\n,k\xe0*\x01+\xf4{', ('216.58.219.238', 0))
  </code></pre>
  
  <p>I'm gussing this is a IP packet but Im not sure how to interpret this data received. I want to know how to dissect this?</p>