Use pcap_setnonblock() on Linux.