I'd place the pcap filtering in a separate issue and make it available in similar API to called by individual test scripts.
I'd place the pcap filtering in a separate issue and make it available in similar API to be called by individual test scripts.