title: Scapy sniffing on Windows
body: <p>I run this code as administrator:</p>
  
  <pre><code>from scapy.all import *
  def poison(packet):
      packet[TCP].flags='R'
      sendp(packet)
  sniff(prn=poison,filter='tcp',iface='any')
  </code></pre>
  
  <p>And I have error:AttributeError None Type object has no attribute encode<br>
  What should I do to make it work?</p>