diff --git a/cpu/native/include/cpu_conf.h b/cpu/native/include/cpu_conf.h index 7aa064109418eb65b11af590ac1cd8675c4533f0..614ec47cb402021dfb6ed6fc9bcdf6179e4a08cb 100644 --- a/cpu/native/include/cpu_conf.h +++ b/cpu/native/include/cpu_conf.h @@ -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 diff --git a/examples/gnrc_minimal/Makefile b/examples/gnrc_minimal/Makefile index 702e9d45ab5e38bd72a3de9ba7987cee92d82d56..81b9631d530bb5bf802703aa0a921141a607bf17 100644 --- a/examples/gnrc_minimal/Makefile +++ b/examples/gnrc_minimal/Makefile @@ -21,15 +21,7 @@ USEMODULE += gnrc_icmpv6_echo # Use minimal standard PRNG USEMODULE += prng_minstd -CFLAGS += -DGNRC_IPV6_NETIF_ADDR_NUMOF=4 -# Reduce sizes for GNRC's packet buffer and neighbor cache -# (for native we need a bigger buffer, because the tap driver temporarily -# allocates ~1500 bytes) -ifneq (,$(filter native,$(BOARD))) - CFLAGS += -DGNRC_PKTBUF_SIZE=2048 -DGNRC_IPV6_NC_SIZE=1 -else - CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DGNRC_IPV6_NC_SIZE=0 -endif +CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DGNRC_IPV6_NETIF_ADDR_NUMOF=4 -DGNRC_IPV6_NC_SIZE=1 # Change this to 0 show compiler invocation lines by default: QUIET ?= 1