From 596f7420660fc5de4120f92bbf97b2700f70cfa2 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Thu, 5 Jul 2018 09:13:28 +0200 Subject: [PATCH] etharp: fix using ARP_TABLE_SIZE >= 0x80 --- src/core/ipv4/etharp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ipv4/etharp.c b/src/core/ipv4/etharp.c index b57be23a..442aac08 100644 --- a/src/core/ipv4/etharp.c +++ b/src/core/ipv4/etharp.c @@ -125,8 +125,8 @@ static netif_addr_idx_t etharp_cached_entry; /* Check for maximum ARP_TABLE_SIZE */ -#if (ARP_TABLE_SIZE > 0x7f) -#error "ARP_TABLE_SIZE must fit in an s8_t, you have to reduce it in your lwipopts.h" +#if (ARP_TABLE_SIZE > NETIF_ADDR_IDX_MAX) +#error "ARP_TABLE_SIZE must fit in an s16_t, you have to reduce it in your lwipopts.h" #endif