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