commit | 773b27c234d1531f3f729c098173ffa93d1014f6 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Aug 20 17:37:36 2021 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Aug 20 17:37:36 2021 -0700 |
tree | b749357e30a9cddad07bcf0cba5c971e406cf371 | |
parent | 3af923b2609e826396fcc96bf132b194794db055 [diff] [blame] |
Upgrade libpcap to libpcap-1.10.1 Test: make Change-Id: I71fbaf023c661441852a3a3ed18b935fee111fa2
diff --git a/pcap-bt-linux.c b/pcap-bt-linux.c index 2969ff8..8e70feb 100644 --- a/pcap-bt-linux.c +++ b/pcap-bt-linux.c
@@ -341,6 +341,10 @@ } while ((ret == -1) && (errno == EINTR)); if (ret < 0) { + if (errno == EAGAIN || errno == EWOULDBLOCK) { + /* Nonblocking mode, no data */ + return 0; + } pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, errno, "Can't receive packet"); return -1;