Added pcap_next() and pcap_setfilter().

... Fixed a couple of bugs