dns plugin: Resume after receiving a PCAP_ERROR from pcap_loop().
authorFlorian Forster <octo@collectd.org>
Wed, 24 Apr 2013 19:55:06 +0000 (21:55 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 24 Apr 2013 20:01:04 +0000 (22:01 +0200)
commitb8f9530ad6ba3a55f129d259c705d9b5d4d3f4e5
treea1e17bc321ee12205197b25fe99ed14ebe33462b
parentbd688e6fb5763f2e7450def650147bc141a87a9a
dns plugin: Resume after receiving a PCAP_ERROR from pcap_loop().

If an interface goes down while capturing, libpcap returns PCAP_ERROR.
Handle this case gracefully.

Github: #308
src/dns.c