How to optimize performance indicators for libpcap