Added test for libpcap and removed obsolete stuff.