mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
native: assert that the pktbuf is big enough
Rationale: the netdev2_tap Ethernet driver for native requires to temporarily store at least a maximum sized Ethernet frame.
This commit is contained in:
parent
ceab9bd9c3
commit
3f1c2e1f1b
@ -55,6 +55,11 @@ extern "C" {
|
||||
*/
|
||||
#define NATIVE_ETH_PROTO 0x1234
|
||||
|
||||
#if (defined(GNRC_PKTBUF_SIZE)) && (GNRC_PKTBUF_SIZE < 2048)
|
||||
# undef GNRC_PKTBUF_SIZE
|
||||
# define GNRC_PKTBUF_SIZE (2048)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user