add stat and log for pcap