Fix segmentation fault caused by calling pcap_datalink() with a NULL value instead of a pcap_t structure