To print errors, using pcap_geterr instead of the global buffer.