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 return value of poll_host_device #39

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

thomasst
Copy link
Contributor

When receiving frames and no further frames are available, read() returns EAGAIN. In the previous implementation, frames would not be processed until the circular multicast buffer is full, resulting in a periodic burst of packets. In general, a receive failure should not affect processing of packets that were already successfully received.

I observed this behavior in #38 (comment) where I ping the broadcast address from the machine running owl.

Tested on:

  • TP-Link Archer T1U V1.0 (mt76)
  • Alfa AWUS036NHA (ath9k_htc)

When receiving frames and no further frames are available, read() returns
EAGAIN. In the previous implementation, frames would not be processed until
the circular multicast buffer is full, resulting in a periodic burst of
packets. In general, a receive failure should not affect processing of packets
that were already successfully received.

Tested on:
- TP-Link Archer T1U V1.0 (mt76)
- Alfa AWUS036NHA (ath9k_htc)
@schmittner
Copy link
Member

Thanks for catching this!

@schmittner schmittner merged commit d8a802a into seemoo-lab:master Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants