forked from RIOT-OS/RIOT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev2_tap: continue reading even if no spaces left in pktbuf
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv` that results in deadlock. With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero length parameter, that indicates the driver to drop frame and resume working.
- Loading branch information
1 parent
79d3389
commit c4bc424
Showing
3 changed files
with
55 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters