sniffer function ready