Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix daynaport emulation regression (#1306) #1318

Merged
merged 13 commits into from
Nov 8, 2023
2 changes: 1 addition & 1 deletion cpp/devices/ctapdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down