libpcap helper using libevent