1
0
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:
Kaspar Schleiser 2015-09-15 13:23:28 +02:00
commit dd87073a60

View File

@ -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);