Fix daynaport emulation regression (#1306) (#1318)

This commit is contained in:
Uwe Seimet 2023-11-09 00:39:00 +01:00 committed by GitHub
parent 76b0f43bc1
commit f90f8eaf4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,7 +337,7 @@ bool CTapDriver::HasPendingPackets() const
fds.revents = 0;
poll(&fds, 1, 0);
spdlog::trace(to_string(fds.revents) + " revents");
return !(fds.revents & POLLIN);
return fds.revents & POLLIN;
}
// See https://stackoverflow.com/questions/21001659/crc32-algorithm-implementation-in-c-without-a-look-up-table-and-with-a-public-li