1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

netdev_eth: return payload length instead of frame length

This commit is contained in:
Martine Lenders 2015-08-20 15:38:08 +02:00
parent 942d774a44
commit e5b03dfddd

View File

@ -223,7 +223,7 @@ static inline int _get_max_pkt_sz(uint16_t *value, size_t max_len)
return -EOVERFLOW;
}
*value = ETHERNET_MAX_LEN;
*value = ETHERNET_DATA_LEN;
return sizeof(uint16_t);
}