add stop_filter argument to sniff()
add stop_filter argument to sniff()

This argment is a python function applied to each packet to determine
if we have to stop the capture after this packet.
ex: stop_filter = lambda x: x.haslayer(TCP)

mytliulei/Scapy,mytliulei/Scapy