From c0b42e1e8494eeeca4871c86321ef56446b604f2 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 3 Nov 2010 10:50:31 +0000 Subject: [PATCH] lwIP: always enable ARP functionality Nothing works without ARP in lwIP. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4498 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/cfg_lwip.h | 6 +++--- bertos/net/lwip.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bertos/cfg/cfg_lwip.h b/bertos/cfg/cfg_lwip.h index 4f9fd63c..7e3b40c9 100644 --- a/bertos/cfg/cfg_lwip.h +++ b/bertos/cfg/cfg_lwip.h @@ -357,11 +357,11 @@ --------------------------------- */ /** - * Enable ARP functionality. - * - * $WIZ$ type = "boolean" + * LWIP_ARP==1: Enable ARP functionality. */ +#ifndef LWIP_ARP #define LWIP_ARP 1 +#endif /** * ARP_TABLE_SIZE: Number of active MAC-IP address pairs cached. diff --git a/bertos/net/lwip.c b/bertos/net/lwip.c index 8bc9b3b5..c95254e0 100644 --- a/bertos/net/lwip.c +++ b/bertos/net/lwip.c @@ -100,9 +100,7 @@ #endif /* lwIP network interface */ -#if LWIP_ARP #include "lwip/src/netif/etharp.c" -#endif #include "lwip/src/netif/loopif.c" /* lwIP PPP implementation */ -- 2.25.1