title: decode hex pcap packet in scapy
body: <p>There is a pcap hex packet in the following format:</p>
  
  <pre><code>0000   D4 C3 B2 A1 02 00 04 00  00 00 00 00 00 00 00 00   ................
  0010   FF FF 00 00 01 00 00 00  5F D0 4C 59 57 D6 0E 00   ........_.LYW...
  0020   84 00 00 00 84 00 00 00  00 00 C2 85 C1 03 00 00   ................
  0030   00 00 00 02 81 00 00 0A  08 00 45 00 00 6E E4 C4   ..........E..n..
  0040   00 00 FF 06 C7 AF 01 02  03 04 0A 01 01 0F 00 10   ................
  0050   00 0A 00 01 E2 40 00 03  94 47 50 10 10 00 D2 F8   .....@...GP.....
  0060   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
  0070   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
  0080   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
  0090   00 00 00 00 3B C5 9A 8F  38 A4 2B 76 7D 39 7A 68   ....;...8.+v}9zh
  00a0   8A 59 F6 A4 CC 32 C7 97  B1 86 F6 50               .Y...2.....P
  </code></pre>
  
  <p>The byte <code>00 00 C2 85 C1 03</code> which starts from 0x0025 is my real packet, the pcap packet has a 0x25=37 bytes header, I wonder how to decode this packet in <code>scapy</code> in python. It didn't work to decode it directly in the following code:</p>
  
  <pre><code>load_packet = Ether(raw_packet)
  print load_packet.src, load_packet.dst
  print load_packet.getlayer(IP).src, load_packet.getlayer(IP).dst
  print load_packet.getlayer(TCP).sport, load_packet.getlayer().dport
  </code></pre>
  
  <p>where <code>raw_packet</code> is the above packet string.</p>