mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Merge pull request #3826 from OlegHahm/netdev2_tap_buffer_size
netdev2_tap: set maximum buffer size correctly
This commit is contained in:
commit
dd87073a60
@ -224,7 +224,7 @@ static int _recv(netdev2_t *netdev2, char *buf, int len)
|
||||
if (!buf) {
|
||||
/* no way of figuring out packet size without racey buffering,
|
||||
* so we return the maximum possible size */
|
||||
return 576;
|
||||
return ETHERNET_FRAME_LEN;
|
||||
}
|
||||
|
||||
int nread = real_read(dev->tap_fd, buf, len);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user