title: Use multiple filters in Scapy's "sniff" function
body: <p>A friend and I are currently making a sniffing application in Python using the Scapy library. We have a GUI interface where we can choose filters and protocols. We want to sniff the network using one or more filters but don't know how to do. For now we tried the following code :</p>
  
  <pre><code>capture=scapy.sniff(filter="tcp and udp",timeout=5)
  print(capture)
  </code></pre>
  
  <p>It works well but it sniffs using only the first filter (tcp filter in this case). We also tried with the following code but same :</p>
  
  <pre><code>capture1=scapy.sniff(filter="tcp",timeout=5)
  capture2=scapy.sniff(filter="udp",timeout=5)
  print(capture1)
  print(capture2)
  </code></pre>
  
  <p>So, is it possible to sniff using more than one filter and if so, do you have any idea ?</p>
  
  <p>Thanks</p>